class DiffRunner::App

Public Instance Methods

invocation() click to toggle source
# File lib/diff-runner.rb, line 20
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() click to toggle source
# File lib/diff-runner.rb, line 9
def run
        runner.run
        Registary.instance.register(".", runner)
        begin
                sleep
      rescue Interrupt
        end
        puts `clear`
        puts "Bye!"
end
runner() click to toggle source
# File lib/diff-runner.rb, line 33
def runner
        @runner ||= InvocationRunner.new invocation, Presenter.new
end