Class: SetupConfiguration::Legacy::Parameter
- Inherits:
-
Parameter
- Object
- Parameter
- SetupConfiguration::Legacy::Parameter
show all
- Defined in:
- lib/setup_configuration/legacy/parameter.rb
Instance Attribute Summary
Attributes inherited from Parameter
#dependency, #key, #machine_type, #number, #options, #roles
Instance Method Summary
collapse
Methods inherited from Parameter
#<=>, #depends_on, #enabled_for_role, #for_machine_type, #has_options, #initialize
Instance Method Details
#dep? ⇒ Boolean
11
12
13
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 11
def dep?
@dependency != :none
end
|
#extended? ⇒ Boolean
7
8
9
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 7
def extended?
dep? || type? || roles? || options?
end
|
#options=(o) ⇒ Object
31
32
33
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 31
def options=(o)
@options = o
end
|
#options? ⇒ Boolean
27
28
29
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 27
def options?
@options != 0
end
|
#param? ⇒ Boolean
35
36
37
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 35
def param?
true
end
|
#roles=(r) ⇒ Object
23
24
25
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 23
def roles=(r)
@roles = r
end
|
#roles? ⇒ Boolean
19
20
21
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 19
def roles?
@roles != 0
end
|
#type? ⇒ Boolean
15
16
17
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 15
def type?
@machine_type != 0
end
|