Sha256: 8a0f2f4ccafd6c30ccfc8e16c842b89e930621b783553a75020e2abf8c6a294e
Contents?: true
Size: 880 Bytes
Versions: 3
Compression:
Stored size: 880 Bytes
Contents
def source_paths [ File.expand_path(File.dirname(__FILE__)) ] end # The generated config/boot.rb file references a Gemfile in the dummy app # directory so use one that references the parent app. remove_file "config/boot.rb" copy_file "boot.rb.tt", "config/boot.rb" # The generated config/secrets.yml file uses hardcoded values for # test/development environments. Generate secrets pragmatically. remove_file "config/secrets.yml" template "secrets.yml.erb", "config/secrets.yml" # Comment out username, password from production group. gsub_file "config/database.yml", /^([ ]*[^#])(username: .*|password: .*)$/, '\1# \2' # The db/migrate folder never gets created for the dummy_app so do it manually. unless Dir.exist?("db/migrate") say_status :create, "db/migrate" Dir.mkdir("db/migrate") end route "mount Jobshop::Engine => \"/\"" rake "db:create" rake "db:migrate"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jobshop-0.0.14 | lib/jobshop/templates/dummy_template.rb |
jobshop-0.0.13 | lib/jobshop/templates/dummy_template.rb |
jobshop-0.0.12 | lib/jobshop/templates/dummy_template.rb |