Class: JobInvocationComposer::ParamsForFeature
- Inherits:
-
Object
- Object
- JobInvocationComposer::ParamsForFeature
- Defined in:
- app/models/job_invocation_composer.rb
Instance Attribute Summary collapse
-
#feature ⇒ Object
readonly
Returns the value of attribute feature.
-
#feature_label ⇒ Object
readonly
Returns the value of attribute feature_label.
-
#provided_inputs ⇒ Object
readonly
Returns the value of attribute provided_inputs.
Instance Method Summary collapse
-
#initialize(feature_label, hosts, provided_inputs = {}) ⇒ ParamsForFeature
constructor
A new instance of ParamsForFeature.
- #params ⇒ Object
Constructor Details
#initialize(feature_label, hosts, provided_inputs = {}) ⇒ ParamsForFeature
Returns a new instance of ParamsForFeature.
309 310 311 312 313 314 315 |
# File 'app/models/job_invocation_composer.rb', line 309 def initialize(feature_label, hosts, provided_inputs = {}) @feature = RemoteExecutionFeature.feature!(feature_label) @provided_inputs = provided_inputs translator = HostIdsTranslator.new(hosts) @host_bookmark = translator.bookmark @host_scoped_search = translator.scoped_search end |
Instance Attribute Details
#feature ⇒ Object (readonly)
Returns the value of attribute feature.
307 308 309 |
# File 'app/models/job_invocation_composer.rb', line 307 def feature @feature end |
#feature_label ⇒ Object (readonly)
Returns the value of attribute feature_label.
307 308 309 |
# File 'app/models/job_invocation_composer.rb', line 307 def feature_label @feature_label end |
#provided_inputs ⇒ Object (readonly)
Returns the value of attribute provided_inputs.
307 308 309 |
# File 'app/models/job_invocation_composer.rb', line 307 def provided_inputs @provided_inputs end |
Instance Method Details
#params ⇒ Object
317 318 319 320 321 322 323 324 |
# File 'app/models/job_invocation_composer.rb', line 317 def params { :job_category => job_template.job_category, :targeting => targeting_params, :triggering => {}, :concurrency_control => {}, :remote_execution_feature_id => @feature.id, :template_invocations => template_invocations_params }.with_indifferent_access end |