mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-30 20:04:27 -04:00
Migrate to new heroku platform api - maintenance mode trigger
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require 'heroku-api'
|
||||
require 'platform-api'
|
||||
require 'yaml'
|
||||
|
||||
heroku = Heroku::API.new(api_key: ENV['HEROKU_API_KEY'])
|
||||
heroku = PlatformAPI.connect(ENV['HEROKU_API_KEY'])
|
||||
branch = ENV['TRAVIS_BRANCH']
|
||||
travis_config = YAML.load_file('.travis.yml')
|
||||
if travis_config['deploy']['app'].key? branch
|
||||
|
||||
Reference in New Issue
Block a user