class Appfront::Command::Logs
Public Class Methods
tail(opts)
click to toggle source
# File lib/appfront/command/logs.rb, line 2 def self.tail(opts) find_deploy! opts max_id = nil begin res = api.get "/flow/#{@deploy}/logs?max_id=#{max_id}" max_id, events = res['max_id'], res['events'] events.each {|e| puts e } sleep 2 end while opts[:follow] rescue Exception system("clear") end