Sha256: fe9a71602b837c1a0e6fd32832855781344fad0c089433f6b4d45dc470b3925d

Contents?: true

Size: 540 Bytes

Versions: 4

Compression:

Stored size: 540 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])
  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

4 entries across 4 versions & 1 rubygems

Version Path
da-suspenders-1.0.3 bin/da-suspenders
da-suspenders-1.0.2 bin/da-suspenders
da-suspenders-1.0.1 bin/da-suspenders
da-suspenders-1.0.0 bin/da-suspenders