Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 86
- Log:
Initial import of I2, an Instiki clone.
- Author:
- adh
- Date:
- Mon Oct 16 10:40:36 +0100 2006
- Size:
- 809 Bytes
- Properties:
- Property svn:executable is set
1 | #!/usr/local/bin/ruby |
2 | irb = RUBY_PLATFORM =~ /mswin32/ ? 'irb.bat' : 'irb' |
3 | |
4 | require 'optparse' |
5 | options = { :sandbox => false, :irb => irb } |
6 | OptionParser.new do |opt| |
7 | opt.on('-s', '--sandbox', 'Rollback database modifications on exit.') { |options[:sandbox]| } |
8 | opt.on("--irb=[#{irb}]", 'Invoke a different irb.') { |options[:irb]| } |
9 | opt.parse!(ARGV) |
10 | end |
11 | |
12 | libs = " -r irb/completion" |
13 | libs << " -r #{File.dirname(__FILE__)}/../config/environment" |
14 | libs << " -r console_sandbox" if options[:sandbox] |
15 | |
16 | ENV['RAILS_ENV'] = ARGV.first || 'development' |
17 | if options[:sandbox] |
18 | puts "Loading #{ENV['RAILS_ENV']} environment in sandbox." |
19 | puts "Any modifications you make will be rolled back on exit." |
20 | else |
21 | puts "Loading #{ENV['RAILS_ENV']} environment." |
22 | end |
23 | exec "#{options[:irb]} #{libs} --prompt-mode simple" |