Module: Minfra::Cli::Logging
- Included in:
- KubernetesApplication, Minfra::Cli, Command, Common, HieraLooker, Hook::Hooker, Kube, Plugins::Plugin, Runner, Runner::Result, Setup, StackM::AppTemplate, StackM::ClientTemplate, StackM::KubeStackTemplate, Tag, Orchparty::Services::Context
- Defined in:
- lib/minfra/cli/logging.rb
Instance Method Summary collapse
- #debug(str) ⇒ Object
- #deprecated(comment) ⇒ Object
- #error(str) ⇒ Object
- #exit_error(str) ⇒ Object
- #info(str) ⇒ Object
- #warn(str) ⇒ Object
Instance Method Details
#debug(str) ⇒ Object
23 24 25 |
# File 'lib/minfra/cli/logging.rb', line 23 def debug(str) logger.debug(str) end |
#deprecated(comment) ⇒ Object
27 28 29 |
# File 'lib/minfra/cli/logging.rb', line 27 def deprecated(comment) logger.warn "DEPRECATED: #{comment}" end |
#error(str) ⇒ Object
6 7 8 |
# File 'lib/minfra/cli/logging.rb', line 6 def error(str) logger.error(colored(str, :red)) end |
#exit_error(str) ⇒ Object
10 11 12 13 |
# File 'lib/minfra/cli/logging.rb', line 10 def exit_error(str) error str raise Minfra::Cli::Errors::ExitError, str end |
#info(str) ⇒ Object
15 16 17 |
# File 'lib/minfra/cli/logging.rb', line 15 def info(str) logger.info str end |
#warn(str) ⇒ Object
19 20 21 |
# File 'lib/minfra/cli/logging.rb', line 19 def warn(str) logger.warn(colored(str, :yellow)) end |