Sha256: f7bc0adf0e4478494ad6f6f6cf9e6ddbd19bb6d4d34515c6724a5ce6ba125412

Contents?: true

Size: 676 Bytes

Versions: 2

Compression:

Stored size: 676 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require "pathname"

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

require "tractor_beam"

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 TractorBeam::VERSION
  exit 0
end

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

TractorBeam::AppGenerator.start

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tractor_beam-0.1.4 bin/tractor_beam
tractor_beam-0.1.2 bin/tractor_beam