Class: Helm::Commands::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/helm/commands/command.rb

Direct Known Subclasses

Assign, Create, Info, List, Open, Resolve, Schedule, Show, Status, Upload

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

#sessionObject (readonly)

Returns the value of attribute session.



4
5
6
# File 'lib/helm/commands/command.rb', line 4

def session
  @session
end

Instance Method Details

#cacheObject



6
7
8
# File 'lib/helm/commands/command.rb', line 6

def cache
  session.cache
end

#formatObject



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