Method: CF::App::Create#create_app
- Defined in:
- lib/cf/cli/app/push/create.rb
#create_app(inputs) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/cf/cli/app/push/create.rb', line 21 def create_app(inputs) app = client.app inputs.each { |key, value| app.send(:"#{key}=", value) } finalize app = filter(:create_app, app) with_progress("Creating #{c(app.name, :name)}") do do begin app.create! rescue CFoundry::NotAuthorized fail "You need the Project Developer role in #{b(client.current_space.name)} to push." end end end app end |