Class: MarketplaceKit::Commands::Deploy

Inherits:
BaseAuthorizedCommand show all
Defined in:
lib/marketplace_kit/commands/deploy.rb

Defined Under Namespace

Classes: ListChangedFiles

Instance Method Summary collapse

Methods inherited from BaseAuthorizedCommand

#initialize

Methods inherited from BaseCommand

#initialize

Methods included from Services::Loggable

#log

Constructor Details

This class inherits a constructor from MarketplaceKit::Commands::BaseAuthorizedCommand

Instance Method Details

#executeObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/marketplace_kit/commands/deploy.rb', line 4

def execute
  log :deploy_started
  ensure_tmp_folder_exist

  log :compressing_folder
  zip_marketplace_builder_directory

  log :sending_zip
  response = send_zip_to_server
  return unless response.success?

  log :wait_for_deploy_finish
  wait_for_deploy(response[:body]['id'])
end