Class: Brut::CLI::Apps::Deploy::Build

Inherits:
Commands::BaseCommand show all
Defined in:
lib/brut/cli/apps/deploy.rb

Defined Under Namespace

Classes: Docker

Instance Attribute Summary

Attributes inherited from Commands::BaseCommand

#parent_command

Instance Method Summary collapse

Methods inherited from Commands::BaseCommand

#accepts, #args_description, #argv, #bootstrap?, #delegate_to_command, #detailed_description, #env, #env_vars, #execute, #name, #options, #puts, #stdin, #system!, #theme

Constructor Details

#initialize(push: false) ⇒ Build

Returns a new instance of Build.



124
125
126
# File 'lib/brut/cli/apps/deploy.rb', line 124

def initialize(push: false)
  @push = push
end

Instance Method Details

#commandsObject



131
# File 'lib/brut/cli/apps/deploy.rb', line 131

def commands = []

#default_rack_envObject



122
# File 'lib/brut/cli/apps/deploy.rb', line 122

def default_rack_env = Docker.new.default_rack_env

#descriptionObject



120
# File 'lib/brut/cli/apps/deploy.rb', line 120

def description      = Docker.new.description

#optsObject



121
# File 'lib/brut/cli/apps/deploy.rb', line 121

def opts             = Docker.new.opts

#runObject



127
128
129
# File 'lib/brut/cli/apps/deploy.rb', line 127

def run
  delegate_to_command(Docker.new(push: @push))
end