module Commands::Publish

Public Instance Methods

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

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