Sha256: 978336970d3586f40c6f8c048cf8d2c40ebae7c9e7b2391c50d5b5bdbc8bf5d9

Contents?: true

Size: 894 Bytes

Versions: 1

Compression:

Stored size: 894 Bytes

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 '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"
    end
  end

protected

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
culerity-0.2.4 rails_generators/culerity/culerity_generator.rb