Sha256: b837a1c9f663bdf3e1e297b229a6d9fc881a05adc4ea57e78600ff55f8e2eccf

Contents?: true

Size: 912 Bytes

Versions: 37

Compression:

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

37 entries across 37 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 exe/rag
rails_app_generator-0.3.5 exe/rag
rails_app_generator-0.3.4 exe/rag
rails_app_generator-0.3.3 exe/rag
rails_app_generator-0.3.2 exe/rag
rails_app_generator-0.3.1 exe/rag
rails_app_generator-0.3.0 exe/rag
rails_app_generator-0.2.43 exe/rag
rails_app_generator-0.2.42 exe/rag
rails_app_generator-0.2.41 exe/rag
rails_app_generator-0.2.40 exe/rag
rails_app_generator-0.2.39 exe/rag
rails_app_generator-0.2.38 exe/rag
rails_app_generator-0.2.37 exe/rag
rails_app_generator-0.2.36 exe/rag
rails_app_generator-0.2.35 exe/rag
rails_app_generator-0.2.34 exe/rag
rails_app_generator-0.2.33 exe/rag
rails_app_generator-0.2.32 exe/rag
rails_app_generator-0.2.31 exe/rag