Class: MarketplaceKit::Commands::Pull
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- MarketplaceKit::Commands::Pull
- Includes:
- Services::Loggable
- Defined in:
- lib/marketplace_kit/commands/pull.rb
Instance Method Summary collapse
Methods included from Services::Loggable
Methods inherited from BaseCommand
Constructor Details
This class inherits a constructor from MarketplaceKit::Commands::BaseCommand
Instance Method Details
#execute ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/marketplace_kit/commands/pull.rb', line 6 def execute log :pull_started ensure_tmp_folder_exist log :request_backup response = send_backup_request log :wait_for_backup_finish success_response = wait_for_backup(response[:body]['id']) if response.success? download_and_unzip_exported_zip(success_response) if success_response end |