SECRETS_YML_TT_URI = URI.parse("https://raw.githubusercontent.com/jobshop/jobshop/master/lib/jobshop/templates/secrets.yml.tt") # Add jobshop to the application `Gemfile`. gem "jobshop", "~> 0.0.9" # The generated config/secrets.yml file uses hardcoded values for # test/development environments. Generate secrets pragmatically. remove_file "config/secrets.yml" create_file "config/secrets.yml" do Net::HTTP.start(SECRETS_YML_TT_URI.host, SECRETS_YML_TT_URI.port, use_ssl: true) do |http| http.request(Net::HTTP::Get.new(SECRETS_YML_TT_URI)) end.body end after_bundle do route %Q(mount Jobshop::Engine => "/") end