Class: DiffRunner::App
- Inherits:
-
Object
- Object
- DiffRunner::App
- Defined in:
- lib/diff-runner.rb
Instance Method Summary collapse
Instance Method Details
#invocation ⇒ Object
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 |
#run ⇒ Object
7 8 9 10 11 |
# File 'lib/diff-runner.rb', line 7 def run invocation.run Registary.instance.register(".", invocation) sleep end |