Sha256: f44ee9a96f0fbe606fba662c8506113862325b83740542aa6b227e27b8960b11

Contents?: true

Size: 534 Bytes

Versions: 13

Compression:

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
suspenders-0.2.5 bin/suspenders
suspenders-0.2.4 bin/suspenders
suspenders-0.2.3 bin/suspenders
suspenders-0.2.2 bin/suspenders
suspenders-0.2.1 bin/suspenders
suspenders-0.2.0 bin/suspenders
suspenders-0.1.0.beta.7 bin/suspenders
suspenders-0.1.0.beta.6 bin/suspenders
suspenders-0.1.0.beta.5 bin/suspenders
suspenders-0.1.0.beta.4 bin/suspenders
suspenders-0.1.0.beta.3 bin/suspenders
suspenders-0.1.0.beta.2 bin/suspenders
suspenders-0.1.0.beta.1 bin/suspenders