Sha256: ec6b2b383444002b109485aebe5b576d93f56960338078279f8cb612daf0b43c

Contents?: true

Size: 880 Bytes

Versions: 1

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"
copy_file "secrets.yml.tt", "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

1 entries across 1 versions & 1 rubygems

Version Path
jobshop-0.0.11 lib/jobshop/templates/dummy_template.rb