lib/thin/runner.rb
# Parse the current shell arguments and run the command.
# Exits on error.
Parse the current shell arguments and run the command.
Exits on error.
Parse the current shell arguments and run the command . Exits on error .
def run!
      if self.class.commands.include?(@command)
        run_command
      elsif @command.nil?
        puts "Command required"
        puts @parser
        exit 1  
      else
        abort "Unknown command: #{@command}. Use one of #{self.class.commands.join(', ')}"
      end
    end
def run! if self . class . commands . include? ( @command ) run_command elsif @command . nil? puts "Command required" puts @parser exit 1 else abort "Unknown command: #{@command}. Use one of #{self.class.commands.join(', ')}" end end
Parse the current shell arguments and run the command.
Parse the current shell arguments and run the command .