Class: Redmine::Commands::Start
- Inherits:
-
Object
- Object
- Redmine::Commands::Start
- Defined in:
- lib/redmine/commands/start.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(arguments, config) ⇒ Start
constructor
A new instance of Start.
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
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
14 15 16 |
# File 'lib/redmine/commands/start.rb', line 14 def arguments @arguments end |
#config ⇒ Object (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
#execute ⇒ Object
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 |