Sha256: 5e4a082a9af9557e833eacf6dbdae8210dadb0e9ed24ec0af9fe5aafc8ba7e5c

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

require 'rails/generators'

class LogRangerGenerator < Rails::Generators::Base
  source_root File.expand_path('templates', __dir__)

  def copy_initializer_file
    copy_file "models/application.rb", "app/models/application.rb"
    copy_file "models/application_log.rb", "app/models/application_log.rb"
    copy_file "config/mongoid.yml", "config/mongoid.yml"
    copy_file "config/initializers/log_ranger.rb", "config/initializers/log_ranger.rb"
    copy_file "config/initializers/mongo.rb", "config/initializers/mongo.rb"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
log_ranger-0.1.7 lib/log_ranger/log_ranger/log_ranger_generator.rb
log_ranger-0.1.6 lib/log_ranger/log_ranger/log_ranger_generator.rb
log_ranger-0.1.5 lib/log_ranger/log_ranger/log_ranger_generator.rb