Class: DiffRunner::App

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

Instance Method Summary collapse

Instance Method Details

#invocationObject



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/diff-runner.rb', line 13

def invocation
  if not @invocation
    if ARGV.empty?
      $stderr.puts "Please provide a command to run"
      exit(1)
    end

    @invocation = Invocation.new ARGV
  end

  @invocation
end

#runObject



7
8
9
10
11
# File 'lib/diff-runner.rb', line 7

def run
  invocation.run
  Registary.instance.register(".", invocation)
  sleep
end