Class: ItamaeSpec::CLI
- Inherits:
-
Itamae::CLI
- Object
- Itamae::CLI
- ItamaeSpec::CLI
- Defined in:
- lib/itamae-spec/cli.rb
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #version ⇒ Object
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
8 9 10 11 12 13 |
# File 'lib/itamae-spec/cli.rb', line 8 def initialize(*) super Itamae.logger.level = ::Logger.const_get([:log_level].upcase) if [:log_level] Itamae.logger.formatter.colored = [:color] if [:color] end |
Instance Method Details
#version ⇒ Object
15 16 17 |
# File 'lib/itamae-spec/cli.rb', line 15 def version puts "Itamae-Spec v#{ItamaeSpec::VERSION}" end |