Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (19 sloc) 0.543 kB
#!/usr/bin/env ruby
require File.expand_path(File.dirname(__FILE__) + "/../lib/create")
require File.expand_path(File.dirname(__FILE__) + "/../lib/errors")
include Suspenders::Errors
def usage
"Usage: #{File.basename(__FILE__)} create new_project_name"
end
case ARGV[0]
when 'create', '--create'
begin
Suspenders::Create.run!(ARGV[1], ARGV[2])
rescue Suspenders::InvalidInput => e
error_with_message(e.message)
end
when 'help', '--help'
puts usage
else
error_with_message "Unknown subcommand: #{ARGV[0]}\n#{usage}"
end
Jump to Line
Something went wrong with that request. Please try again.