class Services::Deploy

Public Class Methods

call(app_id, environment_name, branch) click to toggle source
# File lib/busbar_cli/services/deploy.rb, line 3
def self.call(app_id, environment_name, branch)
  Printer.print_result(
    result: DeploymentsRepository.create(
      app_id,
      environment_name,
      branch: branch,
      build: true
    ),
    success_message: 'Deployment scheduled',
    failure_message: 'Error while deploying the environment. ' \
                     'Please check its existence (and of its app)'
  )
end