Sha256: 874eb5a4b58e4ab1768678115fa4249dc7e34b272d5bfefe267f3985e4a3481b

Contents?: true

Size: 528 Bytes

Versions: 10

Compression:

Stored size: 528 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__), '../..', 'lib', 'papermill', 'papermill_initializer.rb'),
      "#{RAILS_ROOT}/config/initializers/papermill.rb"
      )
    puts "Done! Check config/initializer/papermill.rb for result."
    exit
  end 
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
papermill-1.3.4 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.3.3 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.3.2 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.3.1 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.3.0 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.2.0 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.1.6 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.1.5 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.1.4 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.1.3 generators/papermill_initializer/papermill_initializer_generator.rb