Class: Piperun::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/piperun/cli.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



12
13
14
15
# File 'lib/piperun/cli.rb', line 12

def build
  project = Piperun::Project.load "Pipefile.rb"
  project.run
end

#watchObject



18
19
20
21
22
23
24
25
26
27
# File 'lib/piperun/cli.rb', line 18

def watch
  project = Piperun::Project.load "Pipefile.rb"
  project.run
  project.watch

  begin
    Kernel.sleep
  rescue Interrupt
  end
end