Class: PrelandsRails::RecompileSimpleSource::RenameZipFile

Inherits:
Object
  • Object
show all
Includes:
Interactor, Interactor::Contracts, AbstractInteractor
Defined in:
lib/prelands_rails/recompile_simple_source/rename_zip_file.rb

Instance Method Summary collapse

Methods included from AbstractInteractor

#call

Instance Method Details

#actObject



25
26
27
28
29
30
31
# File 'lib/prelands_rails/recompile_simple_source/rename_zip_file.rb', line 25

def act
  old_name = '%s/src.zip' % context.old_aws_prefix
  new_name = '%s/src.zip' % context.aws_prefix

  context.is_zip_moved =
    client.move_file old_name, new_name, context.zip_bucket_name
end