Sha256: f9d5269249b99605d057a06bc270ee307e307a4b77950f241382dc8f54e51d53

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

#!/usr/bin/ruby

require 'optparse'
options = {}

optparse = OptionParser.new do |opts|
  opts.banner = "Usage: spire create folder"

	opts.on('-h', '--help', 'Displays this usage screen') do
		puts optparse
		exit
	end

	opts.on('create', '-c', 'Creates a new app.') do |params|
		options[:create] = params
	end	
	
end

begin
  optparse.parse!
rescue OptionParser::InvalidOption
  puts optparse
  exit 1
end

unless Dir.exists?(options[:create]) 
	system("git clone git://github.com/snicol/spire-base-app.git #{options[:create]}")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spire-0.1.6 bin/spire