class RailsNewApp::Processor

Constants

PATH

Public Class Methods

configure(config) click to toggle source
# File lib/rails-new-app/processors/processor.rb, line 9
def self.configure(config)
  new.configure(config)
end
update_gemfile(config) click to toggle source
# File lib/rails-new-app/processors/processor.rb, line 5
def self.update_gemfile(config)
  new.update_gemfile(config)
end

Public Instance Methods

apply_template(template) click to toggle source
# File lib/rails-new-app/processors/processor.rb, line 21
def apply_template(template)
  system("rails app:template LOCATION=#{PATH}/#{template}.rb")
end
configure(config) click to toggle source
# File lib/rails-new-app/processors/processor.rb, line 17
def configure(config)
  raise "Processor must redefine this method"
end
update_gemfile(config) click to toggle source
# File lib/rails-new-app/processors/processor.rb, line 13
def update_gemfile(config)
  raise "Processor must redefine this method"
end