Module: Kontena::Cli::Stacks::Common::StackValuesFromOption
- Included in:
- BuildCommand, InstallCommand, UpgradeCommand, ValidateCommand
- Defined in:
- lib/kontena/cli/stacks/common.rb
Instance Attribute Summary collapse
-
#values ⇒ Object
Returns the value of attribute values.
Class Method Summary collapse
Instance Attribute Details
#values ⇒ Object
Returns the value of attribute values.
48 49 50 |
# File 'lib/kontena/cli/stacks/common.rb', line 48 def values @values end |
Class Method Details
.included(where) ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'lib/kontena/cli/stacks/common.rb', line 49 def self.included(where) where.option '--values-from', '[FILE]', 'Read variable values from YAML' do |filename| if filename require_config_file(filename) @values = ::YAML.safe_load(File.read(filename)) end filename end end |