Class: HerokuFormationValidator::Plugins::Papertrail

Inherits:
Object
  • Object
show all
Defined in:
lib/heroku_formation_validator/plugins/papertrail.rb

Class Method Summary collapse

Class Method Details

.run(heroku_api, app, values) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/heroku_formation_validator/plugins/papertrail.rb', line 4

def self.run(heroku_api, app, values)
  errors = []
  drains = heroku_api.logdrains(app)
  unless drains.detect{|drain| drain["url"] =~ /^syslog:\/\/logs.papertrailapp.com/}
    errors << "not set in logdrains"
  end
  errors
end