Sha256: 376fca905fefc5a35b9dc82cbac8c52e79845122ddef9371e6b5e1650784b277
Contents?: true
Size: 677 Bytes
Versions: 11
Compression:
Stored size: 677 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 'bankai' 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 Bankai::VERSION exit 0 end templates_root = File.expand_path( File.join('..', 'templates'), File.dirname(__FILE__) ) Bankai::Generator.source_root templates_root Bankai::Generator.source_paths << Rails::Generators::AppGenerator.source_root Bankai::Generator.source_paths << templates_root Bankai::Generator.start
Version data entries
11 entries across 11 versions & 1 rubygems