Class: Remocon::Command::Pull::RemoteConfig
- Inherits:
-
Object
- Object
- Remocon::Command::Pull::RemoteConfig
show all
- Includes:
- InterpreterHelper
- Defined in:
- lib/remocon/command/pull_command.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
#cmd_opts, #condition_array, #condition_names, #parameter_hash, #read_conditions, #read_parameters
Constructor Details
Returns a new instance of RemoteConfig.
11
12
13
|
# File 'lib/remocon/command/pull_command.rb', line 11
def initialize(opts)
@config = Remocon::Config.new(opts)
end
|
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
9
10
11
|
# File 'lib/remocon/command/pull_command.rb', line 9
def config
@config
end
|
Instance Method Details
#raw_conditions ⇒ Object
23
24
25
|
# File 'lib/remocon/command/pull_command.rb', line 23
def raw_conditions
YAML.safe_load(File.open(require_conditions_file_path).read).map(&:with_indifferent_access)
end
|
#raw_parameters ⇒ Object
27
28
29
|
# File 'lib/remocon/command/pull_command.rb', line 27
def raw_parameters
YAML.safe_load(File.open(require_parameters_file_path).read).with_indifferent_access
end
|
#require_conditions_file_path ⇒ Object
19
20
21
|
# File 'lib/remocon/command/pull_command.rb', line 19
def require_conditions_file_path
config.conditions_file_path
end
|
#require_parameters_file_path ⇒ Object
15
16
17
|
# File 'lib/remocon/command/pull_command.rb', line 15
def require_parameters_file_path
config.parameters_file_path
end
|