Sha256: b35f1810599e3aeeb566815adb1e18830910e4a9f76970df92a4a836f821c774

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

#!/usr/bin/env ruby

require 'fileutils'

abort("Usage: bag your-app-name") if ARGV[0].nil?

target_dir = File.join(Dir.pwd, ARGV[0])
abort("error: #{target_dir} already exists") if File.exists?(target_dir)

template_dir = File.join(File.dirname(File.expand_path(__FILE__)), '..', 'template')
FileUtils.cp_r template_dir, target_dir, :verbose => true, :preserve => true

readme = File.join(target_dir, 'README')
puts File.read(readme)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bag-1.0.2 bin/bag
bag-1.0.1 bin/bag