Class: EacCli::Config::Entry
- Inherits:
-
Object
show all
- Defined in:
- lib/eac_cli/config/entry.rb,
lib/eac_cli/config/entry/options.rb,
lib/eac_cli/config/entry/undefined.rb
Defined Under Namespace
Modules: Undefined
Classes: Options
Instance Method Summary
collapse
Instance Method Details
#secret_value ⇒ Object
31
32
33
|
# File 'lib/eac_cli/config/entry.rb', line 31
def secret_value
self.class.new(config, path, options.to_h.merge(noecho: true).to_h).value
end
|
20
21
22
|
# File 'lib/eac_cli/config/entry.rb', line 20
def value
value!
end
|
24
25
26
27
28
29
|
# File 'lib/eac_cli/config/entry.rb', line 24
def value!
return sub_value_to_return if sub_entry.found?
return nil unless options.required?
input_value
end
|