Class: Helm::Commands::Command
- Inherits:
-
Object
- Object
- Helm::Commands::Command
show all
- Defined in:
- lib/helm/commands/command.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(session) ⇒ Command
Returns a new instance of Command.
14
15
16
|
# File 'lib/helm/commands/command.rb', line 14
def initialize(session)
@session = session
end
|
Instance Attribute Details
#session ⇒ Object
Returns the value of attribute session.
4
5
6
|
# File 'lib/helm/commands/command.rb', line 4
def session
@session
end
|
Instance Method Details
#cache ⇒ Object
6
7
8
|
# File 'lib/helm/commands/command.rb', line 6
def cache
session.cache
end
|
18
19
20
|
# File 'lib/helm/commands/command.rb', line 18
def format
@formatter ||= Helm::Formatter.new
end
|
#parameters(*names) ⇒ Object
10
11
12
|
# File 'lib/helm/commands/command.rb', line 10
def parameters(*names)
session.configure_params(*names)
end
|