Module: Nomade
- Defined in:
- lib/nomade.rb,
lib/nomade/job.rb,
lib/nomade/http.rb,
lib/nomade/hooks.rb,
lib/nomade/logger.rb,
lib/nomade/deployer.rb,
lib/nomade/decorators.rb,
lib/nomade/exceptions.rb,
lib/nomade/job_builder.rb
Defined Under Namespace
Modules: Hooks Classes: AllocationFailedError, Decorator, Deployer, DeploymentFailedError, DispatchMetaDataFormattingError, DispatchMissingMetaData, DispatchMissingPayload, DispatchNotParamaterized, DispatchPayloadNotAllowed, DispatchPayloadUnknown, DispatchUnknownMetaData, DispatchWrongJobType, FailedTaskGroupPlan, FormattingError, GeneralError, Http, HttpBadContentType, HttpBadResponse, HttpConnectionError, Job, JobBuilder, NoModificationsError, UnsupportedDeploymentMode
Class Method Summary collapse
Class Method Details
.logger ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/nomade/logger.rb', line 4 def self.logger $logger ||= begin stdout = if ARGV.include?("-d") || ARGV.include?("--debug") [:debug, :info, :warn] else [:info, :warn] end Yell.new do |l| unless ENV["QUIET_NOMADE"] == "1" l.adapter STDOUT, level: stdout l.adapter STDERR, level: [:error, :fatal] end end end end |