Module: Kontena::Cli::Stacks::Common::StackNameParam
- Included in:
- Registry::PullCommand, Registry::RemoveCommand, Registry::ShowCommand
- Defined in:
- lib/kontena/cli/stacks/common.rb
Instance Attribute Summary collapse
-
#stack_version ⇒ Object
Returns the value of attribute stack_version.
Class Method Summary collapse
Instance Attribute Details
#stack_version ⇒ Object
Returns the value of attribute stack_version.
11 12 13 |
# File 'lib/kontena/cli/stacks/common.rb', line 11 def stack_version @stack_version end |
Class Method Details
.included(where) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/kontena/cli/stacks/common.rb', line 13 def self.included(where) where.parameter "STACK_NAME", "Stack name, for example user/stackname or user/stackname:version" do |name| if name.include?(':') name, @stack_version = name.split(':',2 ) end name end end |