Class: Patcmd::CLI::ExecCommand
- Inherits:
-
BaseCommand
- Object
- Thor
- BaseCommand
- Patcmd::CLI::ExecCommand
- Defined in:
- lib/patcmd/cli/commands/exec_command.rb
Constant Summary
Constants inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
Methods included from Helpers::Logger
Methods included from Helpers::TaskHelper
Constructor Details
This class inherits a constructor from Patcmd::CLI::BaseCommand
Instance Method Details
#exec(category, name, action) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/patcmd/cli/commands/exec_command.rb', line 9 def exec(category, name, action) task = config_manager.find_task(category, name, action) if task executor = TaskExecutor.new(task, ) executor.execute else puts "Task not found for category '#{category}', name '#{name}', and action '#{action}'." exit(1) end end |