Method: CF::App::Stop#stop
- Defined in:
- lib/cf/cli/app/stop.rb
#stop ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cf/cli/app/stop.rb', line 10 def stop apps = input[:all] ? client.apps : input[:apps] fail "No applications given." if apps.empty? apps.each do |app| with_progress("Stopping #{c(app.name, :name)}") do |s| if app.stopped? s.skip do err "Application is not running." end end app.stop! end end end |