Class: Phase::CLI::Deploy

Inherits:
Command
  • Object
show all
Defined in:
lib/phase/cli/deploy.rb

Instance Attribute Summary collapse

Attributes inherited from Command

#args, #options

Instance Method Summary collapse

Methods included from Util::Console

#fail, #log

Constructor Details

#initialize(args, options) ⇒ Deploy



20
21
22
23
# File 'lib/phase/cli/deploy.rb', line 20

def initialize(args, options)
  @environment = args.first
  super
end

Instance Attribute Details

#environmentObject (readonly)

Returns the value of attribute environment.



18
19
20
# File 'lib/phase/cli/deploy.rb', line 18

def environment
  @environment
end

Instance Method Details

#runObject



25
26
27
28
29
30
31
32
# File 'lib/phase/cli/deploy.rb', line 25

def run
  # load_environment_config
  # create_build_dir
  # shallow_clone_repository
  # build_docker_image
  # push_docker_image
  # trigger_remote_deployment
end