Sha256: bee5b6d09ea8f6ee851c370e66a8b9ff889e88174591dd0fae812b68e9384dc5

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

class CulerityGenerator < Rails::Generator::Base
  
  def manifest
    record do |m|
      m.directory 'features/step_definitions'
      m.file 'features/step_definitions/culerity_steps.rb', 'features/step_definitions/culerity_steps.rb'
      m.file 'features/support/env.rb', 'features/support/env.rb'
      m.file 'config/environments/culerity_continuousintegration.rb', 'config/environments/culerity_continuousintegration.rb'
      m.file 'config/environments/culerity_development.rb', 'config/environments/culerity_development.rb'

      m.gsub_file 'config/database.yml', /cucumber:.*\n/, "cucumber: &CUCUMBER\n"

      m.gsub_file 'config/database.yml', /\z/, "\nculerity_development:\n  <<: *CUCUMBER"
      m.gsub_file 'config/database.yml', /\z/, "\nculerity_continuousintegration:\n  <<: *CUCUMBER"
      
      m.file "lib/tasks/culerity.rake", "lib/tasks/culerity.rake"
      
      m.file 'public/javascripts/culerity.js', 'public/javascripts/culerity.js'
    end
  end

protected

  def banner
    "Usage: #{$0} culerity"
  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
fletcherm-culerity-0.2.7 rails_generators/culerity/culerity_generator.rb
culerity-0.2.7 rails_generators/culerity/culerity_generator.rb
fletcherm-culerity-0.2.6 rails_generators/culerity/culerity_generator.rb
culerity-0.2.6 rails_generators/culerity/culerity_generator.rb
fletcherm-culerity-0.2.5 rails_generators/culerity/culerity_generator.rb
culerity-0.2.5 rails_generators/culerity/culerity_generator.rb