Class: Contained::CLI::Deploy

Inherits:
Base
  • Object
show all
Defined in:
lib/contained/cli/deploy.rb

Overview

Examples:

Contained::CLI::Deploy.handle!(stdout: $stdout, stderr: $stderr, argv: %i[--environment demo])

Instance Method Summary collapse

Methods inherited from Base

handle!, #initialize

Constructor Details

This class inherits a constructor from Contained::CLI::Base

Instance Method Details

#handle!Object



8
9
10
11
12
13
14
15
# File 'lib/contained/cli/deploy.rb', line 8

def handle!
  arguments = arguments!

  config = Contained::Config.load_file(path: arguments.fetch(:config))
  environment = arguments.fetch(:environment)

  Contained::Task::Deploy.execute!(stdin: @stdin, stdout: @stdout, environment:, config:)
end