Class: DiffRunner::App

Inherits:
Object
  • Object
show all
Defined in:
lib/diff-runner.rb

Instance Method Summary collapse

Instance Method Details

#invocationObject



19
20
21
# File 'lib/diff-runner.rb', line 19

def invocation
  @invocation ||= Invocation.new ARGV
end

#runObject



9
10
11
12
13
14
15
16
17
# File 'lib/diff-runner.rb', line 9

def run
  invocation.run
  changes = Listen.to(".") do |m, a, d|
    invocation.run
  end
  changes.start

  sleep
end