lita-heroku 0.1.1 → 0.1.2
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 +6 -3
- 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: 1ef0b49e0d8ccdd532240cf3dbe0464e757b5323
|
4
|
+
data.tar.gz: 009a8150386caa5324e9f391dc9a24f4a0462cf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c99a77aa674c4f7a8fb643c8a73c7ab810589264d938c4778b430040a13d69a0c2e1db6ab20af9f42d90ec61efd25580c03841e1ef845a839d921682ee0d0d5
|
7
|
+
data.tar.gz: 3294b29606614d408918da09cc0cd3dd4bffafd3e3ad33d687f1e7c18a314386f027764db685f6bd6a31f0ff25c9fbd0c0c4ca4f0e5692f02318d8b13a9fafd5
|
data/lib/lita/handlers/heroku.rb
CHANGED
@@ -6,7 +6,7 @@ module Lita
|
|
6
6
|
config :application_id, required: true
|
7
7
|
|
8
8
|
route(/^hk\s+([^ ]+)\s+(.+)/, :heroku_cmd, command: true, help: {
|
9
|
-
"
|
9
|
+
"hk [app name] [command]" => "example: 'lita hk production ps'"
|
10
10
|
})
|
11
11
|
|
12
12
|
def heroku_cmd(response)
|
@@ -32,7 +32,7 @@ module Lita
|
|
32
32
|
end
|
33
33
|
|
34
34
|
route(/^hk deploy\s+(.+)/, :heroku_deploy, command: true, help: {
|
35
|
-
"
|
35
|
+
"hk deploy [environment]" => "example: 'lita hk production deploy'"
|
36
36
|
})
|
37
37
|
|
38
38
|
def heroku_deploy(response)
|
@@ -44,7 +44,10 @@ module Lita
|
|
44
44
|
build_response = JSON.parse build_response
|
45
45
|
|
46
46
|
if build_response.key?("build") && build_response["build"]["status"] == "pending"
|
47
|
-
response.reply("Started deploy")
|
47
|
+
response.reply("Started deploy.")
|
48
|
+
else
|
49
|
+
$stdout.puts build_response
|
50
|
+
response.reply("Deploy could not be started. Check my logs for more information.")
|
48
51
|
end
|
49
52
|
end
|
50
53
|
|
data/lita-heroku.gemspec
CHANGED