lita-heroku 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/heroku.rb +2 -2
- data/lita-heroku.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e05ebbe3644fdef156548706f3ce2f7158e06a1
|
4
|
+
data.tar.gz: 5840e0395b15255ba2ada322be9c40e4b86a8f22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eca6ba174da6c57fe1784cc7e7aefce28dd1f815b9958aa2f44af18f587dbbf215f6cbad2bc918668f30ccc224725540df7c093b25fb3fb631dddc700ad34ab
|
7
|
+
data.tar.gz: 879d9c4ad7eece55978b1f4cb8f1359cac0f63fbcbfa1f3eb46dd0c2244704261fb0b66b417533d0db867888d5a46d4bebafb2b596efdcd7d5c16c2c26eb60d8
|
data/lib/lita/handlers/heroku.rb
CHANGED
@@ -14,7 +14,7 @@ module Lita
|
|
14
14
|
def heroku_cmd(response)
|
15
15
|
environment = response.matches[0][0]
|
16
16
|
command = response.matches[0][1]
|
17
|
-
if command
|
17
|
+
if command.start_with? "deploy"
|
18
18
|
heroku_deploy response
|
19
19
|
else
|
20
20
|
stdout, stderr, status = Open3.capture3 "#{heroku_bin} #{command} -a #{config.app_prefix}#{environment}"
|
@@ -41,7 +41,7 @@ module Lita
|
|
41
41
|
|
42
42
|
def heroku_deploy(response)
|
43
43
|
bearer = config.oauth_token
|
44
|
-
app_name, branch = response.matches[0]
|
44
|
+
app_name, command, branch = response.matches[0].join(" ").split
|
45
45
|
app_name = "#{config.app_prefix}#{app_name}" unless app_name.start_with? config.app_prefix
|
46
46
|
branch ||= "master"
|
47
47
|
|
data/lita-heroku.gemspec
CHANGED