Sha256: 7b7aa3b00f25856392ebbd14b7a4cacf3f34438f914661744400955e70d35b2e
Contents?: true
Size: 785 Bytes
Versions: 9
Compression:
Stored size: 785 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 'features/support/env.rb', 'features/support/env.rb' m.file 'config/environments/culerity.rb', 'config/environments/culerity.rb' m.gsub_file 'config/database.yml', /cucumber:.*\n/, "cucumber: &CUCUMBER\n" m.gsub_file 'config/database.yml', /\z/, "\nculerity:\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
9 entries across 9 versions & 2 rubygems