Class: Redmine::Commands::Start

Inherits:
Object
  • Object
show all
Defined in:
lib/redmine/commands/start.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arguments, config) ⇒ Start

Returns a new instance of Start.



16
17
18
19
# File 'lib/redmine/commands/start.rb', line 16

def initialize(arguments, config)
  @arguments = arguments
  @config    = config
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



14
15
16
# File 'lib/redmine/commands/start.rb', line 14

def arguments
  @arguments
end

#configObject (readonly)

Returns the value of attribute config.



14
15
16
# File 'lib/redmine/commands/start.rb', line 14

def config
  @config
end

Instance Method Details

#executeObject



21
22
23
24
25
26
27
# File 'lib/redmine/commands/start.rb', line 21

def execute
  run_command Redmine::Commands::Docker::Build.new(config).command_line
  run_command Redmine::Commands::Docker::CreateVolume.new(config).command_line
  run_command Redmine::Commands::Docker::Create.new(config, arguments).command_line
  run_command Redmine::Commands::Docker::CopyConfig.new(config).command_line
  run_command Redmine::Commands::Docker::Start.new(config).command_line
end