class ElasticDot::Command::Logs
Public Class Methods
list(opts)
click to toggle source
# 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
Private Class Methods
apps_info(app)
click to toggle source
# File lib/elasticdot/command/logs.rb, line 16 def self.apps_info(app) info = api.get "/domains/#{app}" app_tier = info['production'] ? 'production' : 'development' {app_tier: app_tier, scaling: info['scaling'], tier: info['dot_tier']['name'], dots: info['min_dots'] } end