Sha256: e051dd9580cca5e4975f0623e38c0c1e38e42e8e073566c7126ca0e2e772719c
Contents?: true
Size: 1.4 KB
Versions: 23
Compression:
Stored size: 1.4 KB
Contents
#!/usr/bin/env ruby require 'pathname' source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path $LOAD_PATH << source_path require 'onotole' GEMPROCLIST = Onotole::AppBuilder.public_instance_methods.map(&:to_s) .grep(/_gem$/) .grep(/^add_/) .map { |a| a[4..-5].to_sym } .sort DEFAULT_GEMSET = [:slim, :faker, :rubycritic, :guard, :rubocop, :meta_request, :clean_comments, :responders, :annotate, :rack_mini_profiler, :overcommit].freeze if ['-v', '--version'].include? ARGV[0] puts "Onotole version #{Onotole::VERSION}" exit 0 elsif ['--gems'].include? ARGV[0] puts 'You can manually can add gems from the list like options' puts "Onotole app_path [--gem1_name --gem2_name ...]\n\n" GEMPROCLIST.map { |a| "--#{a}" }.each_with_index do |g, i| puts if i % 3 == 0 && i > 1 print g.ljust(26) end puts exit 0 end templates_root = File.expand_path(File.join('..', 'templates'), File.dirname(__FILE__)) Onotole::AppGenerator.source_root templates_root Onotole::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root Onotole::AppGenerator.start
Version data entries
23 entries across 23 versions & 1 rubygems