Class: Rundock::Builder::ScenarioBuilder
- Inherits:
-
Base
show all
- Defined in:
- lib/rundock/builder/scenario_builder.rb
Constant Summary
collapse
- CommandArgNotFoundError =
Class.new(StandardError)
Constants inherited
from Base
Base::BuilderNotImplementedError
Instance Method Summary
collapse
Constructor Details
#initialize(options, scenario_file_data) ⇒ ScenarioBuilder
8
9
10
11
12
|
# File 'lib/rundock/builder/scenario_builder.rb', line 8
def initialize(options, scenario_file_data)
super(options)
@scenario_file = scenario_file_data
@default_ssh_builder = DefaultSshBuilder.new(@options)
end
|
Instance Method Details
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/rundock/builder/scenario_builder.rb', line 14
def build
@options.merge!(@default_ssh_builder.build)
return build_scenario_with_cli if @options[:host]
build_scenario_with_file
end
|
#build_task(tasks, backend, target_attributes) ⇒ Object
25
26
27
|
# File 'lib/rundock/builder/scenario_builder.rb', line 25
def build_task(tasks, backend, target_attributes)
OperationBuilder.new(@options).build_task(tasks, backend, target_attributes)
end
|