class AuxiliaryRails::CLI
Constants
- REPOSITORY_URL
- TEMPLATES_DIR
Public Instance Methods
new(app_path)
click to toggle source
# File lib/auxiliary_rails/cli.rb, line 30 def new(app_path) run "rails new #{app_path} " \ "--database=#{options[:database]} " \ "--template=#{rails_template_path(options[:template])} " \ '--skip-action-cable ' \ '--skip-coffee ' \ '--skip-test ' end
Private Instance Methods
rails_template_path(template)
click to toggle source
# File lib/auxiliary_rails/cli.rb, line 41 def rails_template_path(template) if options[:develop] == true "#{REPOSITORY_URL}/rails/#{template}.rb" else "#{TEMPLATES_DIR}/rails/#{template}.rb" end end