class Parade::Commands::GenerateRackup
Generates the a Rackup ‘config.ru` file to allow for presentations to be deployed to locations like Heroku.
Public Instance Methods
description()
click to toggle source
# File lib/parade/commands/generate_rackup.rb, line 11 def description "A default rackup file (i.e. #{rackup_filename})" end
generate(options)
click to toggle source
# File lib/parade/commands/generate_rackup.rb, line 15 def generate(options) create_file_with_contents rackup_filename, rackup_template(options), options end
rackup_filename()
click to toggle source
# File lib/parade/commands/generate_rackup.rb, line 19 def rackup_filename "config.ru" end
rackup_template(options)
click to toggle source
# File lib/parade/commands/generate_rackup.rb, line 23 def rackup_template(options) template_options = { 'erb_template_file' => File.join(default_template_path, "#{rackup_filename}.erb") }.merge(options) render_template template_options end