Sha256: 6edc373a6b39ac75c4eef61db1547443b23e7838b126c9f8284c88f4c076b798
Contents?: true
Size: 584 Bytes
Versions: 2
Compression:
Stored size: 584 Bytes
Contents
$NITRO_NO_ENVIRONMENT = true require 'nano/dir/self/recurse' require 'gen' require 'nitro' PROTO_DIR = File.join(Nitro::LibPath, '..', 'proto') class AppGen < Gen def setup @path = ARGV[0] || usage() @path = File.expand_path(@path) end def run if File.exists? @path STDERR.puts "ERROR: Path #{@path} already exists! Aborting!" exit 1 end FileUtils.cp_r(PROTO_DIR, @path) Dir.recurse(@path) do |f| FileUtils.rm_rf(f) if /\.svn$/ =~ f end end end $generator = AppGen.new # * George Moschovitis <gm@navel.gr>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gen-0.26.0 | lib/gen/app/gen.rb |
gen-0.25.0 | lib/gen/app/gen.rb |