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

Version Path
bankai-0.8.1 exe/bankai
bankai-0.8.0 exe/bankai
bankai-0.7.0 exe/bankai
bankai-0.6.0 exe/bankai
bankai-0.5.1 exe/bankai
bankai-0.5.0 exe/bankai
bankai-0.4.1 exe/bankai
bankai-0.4.0 exe/bankai
bankai-0.3.1 exe/bankai
bankai-0.3.0 exe/bankai
bankai-0.2.3 exe/bankai