Sha256: 72c6034c12d7f7ab24c07c78234df6fe5c0f7d3228973967a8ccf0fb676b0e63

Contents?: true

Size: 681 Bytes

Versions: 8

Compression:

Stored size: 681 Bytes

Contents

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

require 'pathname'

source_path = File.expand_path("#{Pathname.new(__FILE__).dirname}../lib")
$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

8 entries across 8 versions & 1 rubygems

Version Path
bankai-0.13.1 exe/bankai
bankai-0.13.0 exe/bankai
bankai-0.12.1 exe/bankai
bankai-0.12.0 exe/bankai
bankai-0.11.0 exe/bankai
bankai-0.10.0 exe/bankai
bankai-0.9.1 exe/bankai
bankai-0.9.0 exe/bankai