Beispiel #1
0
 def Run(self, args):
     storage_util.WarnIfWildcardIsPresent(args.source, '--source')
     env_ref = args.CONCEPTS.environment.Parse()
     source_path = posixpath.join(Export.SUBDIR_BASE,
                                  (args.source or '*').strip(posixpath.sep))
     return storage_util.Export(env_ref,
                                source_path,
                                args.destination,
                                release_track=self.ReleaseTrack())
Beispiel #2
0
 def Run(self, args):
   storage_util.WarnIfWildcardIsPresent(args.source, '--source')
   env_ref = args.CONCEPTS.environment.Parse()
   gcs_subdir = Import.SUBDIR_BASE
   if args.destination:
     gcs_subdir = posixpath.join(gcs_subdir,
                                 args.destination.strip(posixpath.sep))
   gcs_subdir = posixpath.join(gcs_subdir, '')
   return storage_util.Import(
       env_ref, args.source, gcs_subdir, release_track=self.ReleaseTrack())