diff --git a/CHANGELOG.md b/CHANGELOG.md index 397f5d8..29e9503 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## HEAD +## 8.0.6 + +- Fix `hatchet:setup_ci` not printing output (https://github.com/heroku/hatchet/pull/220) + ## 8.0.5 - Updated excon version requirements (https://github.com/heroku/hatchet/pull/215) diff --git a/README.md b/README.md index c1a2331..1376c2a 100644 --- a/README.md +++ b/README.md @@ -587,7 +587,7 @@ app.get_config("DEPLOY_TASKS") # => "run:bloop" - `app.set_lab()`: Enables the specified lab/feature on the app - `app.add_database()`: adds a database to the app, defaults to the "dev" database -- `app.update_stack()`: Change the app's stack to that specified (for example `"heroku-20"`). Will take effect on the next build. +- `app.update_stack()`: Change the app's stack to that specified (for example `"heroku-24"`). Will take effect on the next build. - `app.run()`: Runs a `heroku run bash` session with the arguments, covered above. - `app.run_multi()`: Runs a `heroku run bash` session in the background and yields the results. This requires the `run_multi` flag of the app to be set to `true`, which will charge your application (the `HATCHET_EXPENSIVE_MODE` env var must also be set to use this feature). Example above. - `app.create_app`: Can be used to manually create the app without deploying it (You probably want `setup!` though) diff --git a/lib/hatchet/tasks.rb b/lib/hatchet/tasks.rb index 5a49ccb..0cb1c7f 100644 --- a/lib/hatchet/tasks.rb +++ b/lib/hatchet/tasks.rb @@ -1,8 +1,12 @@ namespace :hatchet do task :setup_ci do script = File.expand_path(File.join(__dir__, "../../etc/ci_setup.rb")) - out = `#{script}` - raise "Command #{script.inspect} failed\n#{out}" unless $?.success? + puts "Running script `#{script}`" + out = `#{script} 2>&1` + puts "Done" + puts "Output:\n" + puts out + raise "Command #{script.inspect} failed" unless $?.success? end task :setup_travis do diff --git a/lib/hatchet/version.rb b/lib/hatchet/version.rb index a3b862f..24b8ff8 100644 --- a/lib/hatchet/version.rb +++ b/lib/hatchet/version.rb @@ -1,3 +1,3 @@ module Hatchet - VERSION = "8.0.5" + VERSION = "8.0.6" end diff --git a/spec/hatchet/app_spec.rb b/spec/hatchet/app_spec.rb index 6684abe..de62ce5 100644 --- a/spec/hatchet/app_spec.rb +++ b/spec/hatchet/app_spec.rb @@ -23,7 +23,7 @@ end it "create app with stack" do - stack = "heroku-20" + stack = "heroku-24" app = Hatchet::App.new("default_ruby", stack: stack) app.create_app expect(app.platform_api.app.info(app.name)["build_stack"]["name"]).to eq(stack)