コード例 #1
0
ファイル: pipeline.py プロジェクト: HerschelC/openfda
 def _run(self):
   common.cmd(['aws',
               '--profile=' + self.profile,
               's3',
               'sync',
               self.bucket,
               self.local_dir])
コード例 #2
0
ファイル: pipeline.py プロジェクト: ColMac/openfda
 def _run(self):
   common.cmd(['mkdir', '-p', self.local_dir])
   common.cmd(['aws',
               '--profile=' + config.aws_profile(),
               's3',
               'sync',
               self.bucket,
               self.local_dir])
コード例 #3
0
ファイル: pipeline.py プロジェクト: FDA/openfda
  def run(self):
    common.cmd([self.aws,
                '--profile=' + config.aws_profile(),
                's3', 'sync',
                self.bucket,
                self.local_dir])

    with open(self.flag_file(), 'w') as out_f:
      out_f.write('')
コード例 #4
0
ファイル: pipeline.py プロジェクト: FDA/openfda
  def run(self):
    common.cmd(['aws',
                '--cli-read-timeout=3600',
		'--profile=' + config.aws_profile(),
                's3', 'sync',
                self.bucket,
                self.local_dir])

    with open(self.flag_file(), 'w') as out_f:
      out_f.write('')
コード例 #5
0
ファイル: pipeline.py プロジェクト: weisong82/openfda
 def _run(self):
     common.cmd(['mkdir', '-p', self.local_dir])
     common.cmd([
         'aws', '--profile=' + config.aws_profile(), 's3', 'sync',
         self.bucket, self.local_dir
     ])
コード例 #6
0
 def _run(self):
     common.cmd(['mkdir', '-p', CF_ACCESS_LOGS_DIR])
     common.cmd([
         'aws', '--profile=' + config.aws_profile(), 's3', 'sync',
         CF_ACCESS_LOGS_BUCKET, CF_ACCESS_LOGS_DIR
     ])
コード例 #7
0
ファイル: pipeline.py プロジェクト: dataminer-x/openfda
    def run(self):
        common.cmd(["aws", "--profile=" + config.aws_profile(), "s3", "sync", self.bucket, self.local_dir])

        with open(self.flag_file(), "w") as out_f:
            out_f.write("")
コード例 #8
0
 def run(self):
   common.cmd([self.aws,
               '--profile=' + config.aws_profile(),
               's3', 'sync',
               self.bucket,
               self.local_dir])
コード例 #9
0
ファイル: pipeline.py プロジェクト: thecodemasterk/openfda
 def _run(self):
     common.cmd(['mkdir', '-p', SEROLOGY_TEST_SYNC_DIR])
     common.cmd([
         'aws', '--profile=' + config.aws_profile(), 's3', 'sync',
         SEROLOGY_TEST_BUCKET, SEROLOGY_TEST_SYNC_DIR
     ])