Class: VMCAppfog::Runtimes

Inherits:
VMC::CLI
  • Object
show all
Defined in:
lib/appfog-vmc-plugin/commands/runtimes.rb

Instance Method Summary collapse

Instance Method Details

#runtimesObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/appfog-vmc-plugin/commands/runtimes.rb', line 5

def runtimes
  runtimes =
    with_progress("Getting runtimes") do
      client.runtimes
    end

  line unless quiet?

  table(
    %w{runtime description},
    runtimes.collect { |r|
      [c(r.name, :name),c(r.description, :description),
      ]
    })
end