Module: Releasy::Mixins::Log

Included in:
Builders::Builder, Deployers::Deployer, Packagers::Packager, Project
Defined in:
lib/releasy/mixins/log.rb

Constant Summary

LOG_LEVELS =
[:silent, :quiet, :verbose]
DEFAULT_LOG_LEVEL =
:quiet

Class Method Summary (collapse)

Class Method Details

+ (Object) log_level



6
# File 'lib/releasy/mixins/log.rb', line 6

def log_level; @log_level ||= DEFAULT_LOG_LEVEL; end

+ (Object) log_level=(level)

Raises:

  • (ArgumentError)


7
8
9
10
# File 'lib/releasy/mixins/log.rb', line 7

def log_level=(level)
  raise ArgumentError, "Bad log_level: #{level.inspect}" unless LOG_LEVELS.include? level
  @log_level = level
end