Class: Webtask::TaskRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/webtask/task_runner.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#runObject



15
16
17
18
19
20
21
# File 'lib/webtask/task_runner.rb', line 15

def run
  print_intro

  execute_command

  print_outro
end