Sha256: 6296acbf21fa4825bd52b0676c62abe06dacf646bb612544178696594e14e843
Contents?: true
Size: 495 Bytes
Versions: 8
Compression:
Stored size: 495 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
8 entries across 8 versions & 1 rubygems