Sha256: 41593232f205b06b2a44eb1f42ee9c2e73da5397906e973b6e8b2a75aa04d938

Contents?: true

Size: 613 Bytes

Versions: 2

Compression:

Stored size: 613 Bytes

Contents

#!/usr/bin/env ruby
require 'pathname'

source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path
$LOAD_PATH << source_path

require 'scoby'

if ARGV.empty?
  puts "Please provide a path for the new application"
  puts
  puts "See --help for more info"
  exit 0
elsif ['-v', '--version'].include? ARGV[0]
  puts Scoby::VERSION
  exit 0
end

templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__))
Scoby::AppGenerator.source_root templates_root
Scoby::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root

Scoby::AppGenerator.start

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scoby-0.0.2 bin/scoby
scoby-0.0.1 bin/scoby