Module: Releasy::Mixins::Log
- Included in:
- Builders::Builder, Deployers::Deployer, Packagers::Packager, Project
- Defined in:
- lib/releasy/mixins/log.rb
Constant Summary collapse
- LOG_LEVELS =
[:silent, :quiet, :verbose]
- DEFAULT_LOG_LEVEL =
:quiet
Class Method Summary collapse
Class Method Details
.log_level ⇒ Object
6 |
# File 'lib/releasy/mixins/log.rb', line 6 def log_level; @log_level ||= DEFAULT_LOG_LEVEL; end |
.log_level=(level) ⇒ Object
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 |