Class: ElasticDot::Command::Logs
- Defined in:
- lib/elasticdot/command/logs.rb
Class Method Summary collapse
Class Method Details
.list(opts) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/elasticdot/command/logs.rb', line 2 def self.list(opts) find_app! opts max_id = nil begin res = api.get "/apps/#{@app}/logs?max_id=#{max_id}" max_id, events = res['max_id'], res['events'] events.each {|e| puts e } sleep 2 end while opts[:follow] end |