Sha256: 5eb9ad417e5c8ff085a5a7f26d4fec307a7d7826ae1521c49909002718cbeb9e
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
#!/usr/bin/env ruby require File.expand_path(File.dirname(__FILE__) + "/../lib/create") require File.expand_path(File.dirname(__FILE__) + "/../lib/errors") include DaSuspenders::Errors def usage "Usage: #{File.basename(__FILE__)} create new_project_name" end case ARGV[0] when 'create', '--create' begin DaSuspenders::Create.run!(ARGV[1], ARGV[2]) rescue DaSuspenders::InvalidInput => e error_with_message(e.message) end when 'help', '--help' puts usage else error_with_message "Unknown subcommand: #{ARGV[0]}\n#{usage}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
da-suspenders-1.2.0 | bin/da-suspenders |
da-suspenders-1.1.0 | bin/da-suspenders |