Class: Webtask::TaskRunner
- Inherits:
-
Object
- Object
- Webtask::TaskRunner
- Defined in:
- lib/webtask/task_runner.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(command:, out:) ⇒ TaskRunner
constructor
A new instance of TaskRunner.
- #run ⇒ Object
Constructor Details
#initialize(command:, out:) ⇒ TaskRunner
Returns a new instance of TaskRunner.
10 11 12 13 |
# File 'lib/webtask/task_runner.rb', line 10 def initialize(command:, out:) @command = command @out = out end |
Class Method Details
.run(command:, out:) ⇒ Object
4 5 6 7 |
# File 'lib/webtask/task_runner.rb', line 4 def run(command:, out:) runner = new(command: command, out: out) runner.run end |
Instance Method Details
#run ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/webtask/task_runner.rb', line 15 def run print_intro execute_command print_outro end |