Sha256: 743c522c6df245dbc24b7271e6d7997369cb61967ff518d29e89abbbc94235cf

Contents?: true

Size: 926 Bytes

Versions: 14

Compression:

Stored size: 926 Bytes

Contents

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

require 'pathname'
require 'pry'

source_path = File.expand_path("#{Pathname.new(__FILE__).dirname}/../lib")
$LOAD_PATH << source_path

require 'rails_app_generator'

first = ARGV.first

if ARGV.empty?
  puts 'Please provide a profile for the new application'
  puts
  puts 'See --help for more info'
elsif %w[-v --version].include?(first)
  puts RailsAppGenerator::VERSION
elsif first == 'diff'
  RailsAppGenerator::Cli::Diff.start(ARGV)
elsif first == 'new'
  RailsAppGenerator::AppGenerator.start(ARGV[1..], destination_root: '/Users/davidcruwys/dev/kgems/rails_app_generator/a/rag')
else
  require 'rails_app_generator/rag_initializer'

  fallback_profile_path = File.expand_path("#{Pathname.new(__FILE__).dirname}/../profiles")
  args = ['profile'] + ARGV + ["--fallback-profile-path=#{fallback_profile_path}"]

  RailsAppGenerator::Cli::Profile.start(args)
end

exit 0

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rails_app_generator-0.2.13 exe/rag
rails_app_generator-0.2.12 exe/rag
rails_app_generator-0.2.11 exe/rag
rails_app_generator-0.2.10 exe/rag
rails_app_generator-0.2.9 exe/rag
rails_app_generator-0.2.8 exe/rag
rails_app_generator-0.2.7 exe/rag
rails_app_generator-0.2.6 exe/rag
rails_app_generator-0.2.5 exe/rag
rails_app_generator-0.2.4 exe/rag
rails_app_generator-0.2.3 exe/rag
rails_app_generator-0.2.2 exe/rag
rails_app_generator-0.2.1 exe/rag
rails_app_generator-0.2.0 exe/rag