Sha256: eae31167ede0c00280888ba3de42f96fc67057ca2bc211dd83993acf833ac266

Contents?: true

Size: 524 Bytes

Versions: 15

Compression:

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
papermill-1.1.2 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.1.1 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.1.0 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.0.7 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.0.6 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.0.5 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.0.4 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.0.3 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.0.2 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.0.1 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-1.0.0 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-0.16.3 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-0.16.2 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-0.16.1 generators/papermill_initializer/papermill_initializer_generator.rb
papermill-0.16.0 generators/papermill_initializer/papermill_initializer_generator.rb