Sha256: 77e579cbcdd9dadaa6f89e0be6d585829ed593287b780ac1c39c7c45eefbb7a5

Contents?: true

Size: 701 Bytes

Versions: 2

Compression:

Stored size: 701 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 'schienenzeppelin'

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

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

Schienenzeppelin::AppGenerator.start

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
schienenzeppelin-0.2 exe/sz
schienenzeppelin-0.1 exe/sz