Class: Mimas::CLI::Commands::BaseCommand
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Mimas::CLI::Commands::BaseCommand
- Includes:
- SSH, Template, Terminal::Printer
- Defined in:
- lib/mimas/base_command.rb
Constant Summary
Constants included from Template
Instance Method Summary collapse
-
#initialize ⇒ BaseCommand
constructor
A new instance of BaseCommand.
Methods included from Terminal::Printer
Methods included from SSH
Methods included from Template
#copy_file, lookup_paths, #read_file, #template
Constructor Details
#initialize ⇒ BaseCommand
Returns a new instance of BaseCommand.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/mimas/base_command.rb', line 7 def initialize super if Config.current @hooks = Hooks.new @hooks.merge(Config.current.hooks) Plugins.fetch.each do |plugin| @hooks.merge plugin.hooks if plugin.respond_to?(:hooks) end end end |