This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # View IRB History of this session | |
| # | |
| # irb_history # return all console commands this session | |
| # irb_history 25 # return last 25 console commands from this session | |
| # irb_history :all # return all console commands from all sessions | |
| # irb_history :all, 25 # return last 25 console commands | |
| # | |
| def hist(*args) | |
| limit = args.last.class == Fixnum ? args.last : MAXHISTSIZE | |
| puts Readline::HISTORY.entries.split("exit"). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # -*- ruby -*- | |
| require 'rubygems' | |
| require 'daemon-spawn' | |
| RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) | |
| class DelayedJobWorker < DaemonSpawn::Base | |
| def start(args) | |
| ENV['RAILS_ENV'] ||= args.first || 'development' |