Method: Appfront::Command::Ps.stop
- Defined in:
- lib/appfront/command/ps.rb
.stop(args, opts) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/appfront/command/ps.rb', line 31 def self.stop(args, opts) find_deploy! opts api.put "/flow/#{@deploy}/stop" spinner "Stopping Deploy..." do loop do sleep 3 info = api.get "/flow/#{@deploy}" break if info['status'] == 'deactivated' or info['status'] == 'stopped' end end puts "\n" end |