Sha256: 51f68cd95d6c92eda62360d72ad6b290d7afbd7ce97e13962f490226bcea8a4a

Contents?: true

Size: 494 Bytes

Versions: 193

Compression:

Stored size: 494 Bytes

Contents

commands = Dir["#{File.dirname(__FILE__)}/commands/*.rb"].collect { |file_path| File.basename(file_path).split(".").first }

if commands.include?(ARGV.first)
  require "#{File.dirname(__FILE__)}/commands/#{ARGV.shift}"
else
  puts <<-USAGE
The 'run' provides a unified access point for all the default Rails' commands.
  
Usage: ./script/run <command> [OPTIONS]

Examples:
  ./script/run generate controller Admin
  ./script/run process reaper

USAGE
  puts "Choose: #{commands.join(", ")}"
end

Version data entries

193 entries across 192 versions & 19 rubygems

Version Path
rails-2.3.18 lib/commands.rb
rails_csi-2.3.5.p8 lib/commands.rb
rails-2.3.17 lib/commands.rb
rails_csi-2.3.5.p7 lib/commands.rb
rails_csi-2.3.5.p6 lib/commands.rb
rails-2.3.16 lib/commands.rb
rails-2.3.15 lib/commands.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rails-2.3.14/lib/commands.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/rails-2.3.12/lib/commands.rb
rails-2.3.14 lib/commands.rb
kajam-1.0.3.rc2 vendor/rails/railties/lib/commands.rb
rails-2.3.12 lib/commands.rb
radiant-1.0.0.rc2 vendor/rails/railties/lib/commands.rb
radiant-1.0.0.rc1 vendor/rails/railties/lib/commands.rb
webroar-0.5.0 src/admin_panel/vendor/rails/railties/lib/commands.rb
rails-2.3.11 lib/commands.rb
radiantcms-couchrest_model-0.2.4 vendor/rails/railties/lib/commands.rb
radiantcms-couchrest_model-0.2.2 vendor/rails/railties/lib/commands.rb
radiantcms-couchrest_model-0.2.1 vendor/rails/railties/lib/commands.rb
radiantcms-couchrest_model-0.2 vendor/rails/railties/lib/commands.rb