module Commands::Deploy

Public Instance Methods

deploy( app_id = Services::AppConfig.get_or_exit('app'), environment_name = Services::AppConfig.get_or_exit('environment'), branch = DEFAULT_BRANCH ) click to toggle source
# File lib/busbar_cli/commands/deploy.rb, line 13
def deploy(
  app_id = Services::AppConfig.get_or_exit('app'),
  environment_name = Services::AppConfig.get_or_exit('environment'),
  branch = DEFAULT_BRANCH
)
  Services::Kube.configure_temporary_profile(options.profile)

  Services::Deploy.call(app_id, environment_name, branch)

  return unless options.log

  Services::LatestBuildLogs.call(
    Environment.new(app_id: app_id, name: environment_name)
  )
end