Class: Itamae::CLI
- Inherits:
-
Thor
- Object
- Thor
- Itamae::CLI
- Defined in:
- lib/itamae/cli.rb
Instance Method Summary collapse
-
#initialize(args, opts, config) ⇒ CLI
constructor
A new instance of CLI.
- #local(*recipe_files) ⇒ Object
- #ssh(*recipe_files) ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(args, opts, config) ⇒ CLI
Returns a new instance of CLI.
9 10 11 12 13 14 15 |
# File 'lib/itamae/cli.rb', line 9 def initialize(args, opts, config) opts = Config.new(opts).load super(args, opts, config) Itamae::Logger.level = ::Logger.const_get([:log_level].upcase) Itamae::Logger.formatter.colored = [:color] end |
Instance Method Details
#local(*recipe_files) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/itamae/cli.rb', line 22 def local(*recipe_files) if recipe_files.empty? raise "Please specify recipe files." end Runner.run(recipe_files, :local, ) end |