Module: Kontena::Cli::Stacks::Common::RegistryNameParam

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(where) ⇒ Object



50
51
52
# File 'lib/kontena/cli/stacks/common.rb', line 50

def self.included(where)
  where.parameter "STACK_NAME", "Stack name, for example user/stackname or user/stackname:version", attribute_name: :source
end

Instance Method Details

#stack_nameObject



46
47
48
# File 'lib/kontena/cli/stacks/common.rb', line 46

def stack_name
  @stack_name ||= Kontena::Cli::Stacks::StackName.new(source)
end