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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4218ad5753b957c47652d32c0bc2e2235ff0441e
4
- data.tar.gz: ccd62ca025294d1d74a2e8f1790d8f00ece39d78
3
+ metadata.gz: 1ef0b49e0d8ccdd532240cf3dbe0464e757b5323
4
+ data.tar.gz: 009a8150386caa5324e9f391dc9a24f4a0462cf9
5
5
  SHA512:
6
- metadata.gz: 36994c78fc15b76e93bbfb4d48865c23b1937252e54e7c2a738148fbd0cf8e0944a8a0067b934c0f6f372d50f8200d801dd4243ef31e647dcf4687a7f769f0ad
7
- data.tar.gz: 395099d08d16cc968e252458977968c681588d797fc19f0e082c9ab7e573523eb868edc5dff53cec1a8deee88a6853b389dc7c7acb2632e245d631a6a878d75f
6
+ metadata.gz: 1c99a77aa674c4f7a8fb643c8a73c7ab810589264d938c4778b430040a13d69a0c2e1db6ab20af9f42d90ec61efd25580c03841e1ef845a839d921682ee0d0d5
7
+ data.tar.gz: 3294b29606614d408918da09cc0cd3dd4bffafd3e3ad33d687f1e7c18a314386f027764db685f6bd6a31f0ff25c9fbd0c0c4ca4f0e5692f02318d8b13a9fafd5
@@ -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
- "heroku deploy [environment]" => "example: 'lita heroku deploy production'"
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
- "heroku deploy [environment]" => "example: 'lita heroku deploy production'"
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-heroku"
3
- spec.version = "0.1.1"
3
+ spec.version = "0.1.2"
4
4
  spec.authors = ["Eric Boehs"]
5
5
  spec.email = ["ericboehs@gmail.com"]
6
6
  spec.description = "Lita handler for interacting with Heroku Apps"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-heroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Boehs