Sha256: 168d714dcaede30ee8ce808d0cfdbcc1953c9c7b56bf17623d5e8260671e5de0

Contents?: true

Size: 877 Bytes

Versions: 20

Compression:

Stored size: 877 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
  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

20 entries across 20 versions & 1 rubygems

Version Path
rails_app_generator-0.1.28 exe/rag
rails_app_generator-0.1.27 exe/rag
rails_app_generator-0.1.26 exe/rag
rails_app_generator-0.1.25 exe/rag
rails_app_generator-0.1.24 exe/rag
rails_app_generator-0.1.23 exe/rag
rails_app_generator-0.1.22 exe/rag
rails_app_generator-0.1.21 exe/rag
rails_app_generator-0.1.20 exe/rag
rails_app_generator-0.1.19 exe/rag
rails_app_generator-0.1.18 exe/rag
rails_app_generator-0.1.17 exe/rag
rails_app_generator-0.1.16 exe/rag
rails_app_generator-0.1.15 exe/rag
rails_app_generator-0.1.14 exe/rag
rails_app_generator-0.1.13 exe/rag
rails_app_generator-0.1.12 exe/rag
rails_app_generator-0.1.11 exe/rag
rails_app_generator-0.1.10 exe/rag
rails_app_generator-0.1.9 exe/rag