Sha256: a3ec8e1fbf09288eca72657430b730c3dd16d6cd7b09421bb1e1228e0e8ff9cd

Contents?: true

Size: 499 Bytes

Versions: 12

Compression:

Stored size: 499 Bytes

Contents

class PapermillInitializerGenerator < Rails::Generator::Base
  def initialize(args, options = {})
  end
  
  def manifest
    puts "Copying papermill initializer to config/initializers/..."
    FileUtils.rm_rf("#{RAILS_ROOT}/config/initializers/papermill.rb")
    FileUtils.cp_r(
      File.join(File.dirname(__FILE__), 'papermill_initializer.rb'),
      "#{RAILS_ROOT}/config/initializers/papermill.rb"
      )
    puts "Done! Check config/initializer/papermill.rb for result."
    exit
  end 
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
papermill-2.1.1 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-2.1.0 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-2.0.2 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-2.0.1 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-2.0.0 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-2.0.0.pre generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.4.3 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.4.2 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.4.1 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.4.0 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.3.6 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.3.5 generators/papermill_initializer/papermill_initializer_generator.rb