Sha256: b305ae998788370861e1e6731d888604a000fa533f56b9fc12cf1322aa37ec69

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))

require 'rail/generator'

unless ARGV.length == 2 && ARGV[0] == 'new'
  puts 'Usage: rail new <project_name>'
  exit 1
end

begin
  Rail::Generator.new(root_dir: ARGV[1]).run
rescue Rail::Generator::Error => e
  puts e
  exit 1
end

# vim: set ft=ruby

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rail-0.0.7 bin/rail