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:
- 709 Bytes
- Properties:
- Property svn:executable is set
1 | #!/usr/local/bin/ruby |
2 | require 'optparse' |
3 | |
4 | options = { :environment => "development" } |
5 | |
6 | ARGV.options do |opts| |
7 | script_name = File.basename($0) |
8 | opts.banner = "Usage: runner 'puts Person.find(1).name' [options]" |
9 | |
10 | opts.separator "" |
11 | |
12 | opts.on("-e", "--environment=name", String, |
13 | "Specifies the environment for the runner to operate under (test/development/production).", |
14 | "Default: development") { |options[:environment]| } |
15 | |
16 | opts.separator "" |
17 | |
18 | opts.on("-h", "--help", |
19 | "Show this help message.") { puts opts; exit } |
20 | |
21 | opts.parse! |
22 | end |
23 | |
24 | ENV["RAILS_ENV"] = options[:environment] |
25 | |
26 | #!/usr/local/bin/ruby |
27 | |
28 | require File.dirname(__FILE__) + '/../config/environment' |
29 | eval(ARGV.first) |