Method: CFoundry::V1::Client#frameworks

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

#frameworks(options = {}) ⇒ Object

Retrieve available frameworks.



172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/cfoundry/v1/client.rb', line 172

def frameworks(options = {})
  fs = info[:frameworks]
  return unless fs

  frameworks = []
  fs.each do |name, meta|
    runtimes = meta[:runtimes].collect do |r|
      Runtime.new(r[:name], r[:description])
    end

    frameworks <<
      Framework.new(name.to_s, nil, runtimes, meta[:detection])
  end

  frameworks
end