Method: CFoundry::V1::Client#runtimes

Defined in:
lib/cfoundry/v1/client.rb

#runtimes(options = {}) ⇒ Object

Retrieve available runtimes.



152
153
154
155
156
157
158
159
160
161
# File 'lib/cfoundry/v1/client.rb', line 152

def runtimes(options = {})
  runtimes = []

  @base.system_runtimes.each do |name, meta|
    runtimes <<
      Runtime.new(name.to_s, meta[:version], meta[:debug_modes])
  end

  runtimes
end