lita-ey-deploy 0.0.5 → 0.0.7

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: 324a2cc515df8474e5bf5fab341bed82435e3745
4
- data.tar.gz: bdb8cb25d1dc67e25d7efa6d1f60ec221b7ce235
3
+ metadata.gz: 4a116e32c202ea9614fc0cc2cb254d9b4a62947d
4
+ data.tar.gz: 17e81c4a0ba98536a9455bfac209d60d58589daa
5
5
  SHA512:
6
- metadata.gz: 45d03cda85b10268f17301668a69dd8d57893ffd615c9de86b5a3a82fc03a07a69adc0bf768f8c9a1cd9661a10cd33c5c677373077bc48e9d6a5956c27029136
7
- data.tar.gz: 784ccca172548d77a13ff55681c28202234b63ee01461fea44890534c2475b4f3572d49d2de0dbf43cc45a12df52658a7cf2801f1dd5e687375c14abc512a2e3
6
+ metadata.gz: 797ef763b4e4ffb4e1d13bdf73e775db234b7e73dc367249b9491bd6e04ff4fe34402dff03542e6787f12084eb551b828d785ee3cd26e88e5fbf2ea93b79b9a2
7
+ data.tar.gz: b7a91f2e6e89d7616ca5c520699a3dec797278667c83005a2da31cc0bb8a5051ba0911aad17cfe53d432c18e2a7199173830f1e38e8fb59b7a8c22f576927d92
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lita-ey-deploy (0.0.5)
4
+ lita-ey-deploy (0.0.7)
5
5
  engineyard
6
6
  lita (>= 3.2.0)
7
7
  lita-ey-base
@@ -18,15 +18,15 @@ GEM
18
18
  thor
19
19
  diff-lcs (1.2.5)
20
20
  docile (1.1.3)
21
- engineyard (2.3.1)
22
- engineyard-cloud-client (~> 1.0.14)
21
+ engineyard (3.0.0)
22
+ engineyard-cloud-client (~> 2.1.0)
23
23
  engineyard-serverside-adapter (= 2.2.0)
24
24
  escape (~> 0.0.4)
25
25
  highline (~> 1.6.1)
26
26
  launchy (~> 2.1)
27
- net-ssh (~> 2.2)
27
+ net-ssh (~> 2.7)
28
28
  rest-client (~> 1.6.0)
29
- engineyard-cloud-client (1.0.15)
29
+ engineyard-cloud-client (2.1.0)
30
30
  multi_json (~> 1.6)
31
31
  rest-client (~> 1.6.1)
32
32
  engineyard-serverside-adapter (2.2.0)
@@ -39,11 +39,11 @@ GEM
39
39
  http_router (0.11.1)
40
40
  rack (>= 1.0.0)
41
41
  url_mount (~> 0.2.1)
42
- i18n (0.6.9)
42
+ i18n (0.6.11)
43
43
  ice_nine (0.11.0)
44
- launchy (2.4.2)
44
+ launchy (2.4.3)
45
45
  addressable (~> 2.3)
46
- lita (3.3.0)
46
+ lita (4.0.2)
47
47
  bundler (>= 1.3)
48
48
  faraday (>= 0.8.7)
49
49
  http_router (>= 0.11.1)
@@ -62,14 +62,14 @@ GEM
62
62
  multi_json (1.10.1)
63
63
  multipart-post (2.0.0)
64
64
  net-ssh (2.9.1)
65
- puma (2.8.2)
65
+ puma (2.9.2)
66
66
  rack (>= 1.1, < 2.0)
67
67
  rack (1.5.2)
68
68
  rake (10.3.2)
69
69
  rb-readline (0.5.1)
70
- redis (3.0.7)
71
- redis-namespace (1.4.1)
72
- redis (~> 3.0.4)
70
+ redis (3.1.0)
71
+ redis-namespace (1.5.1)
72
+ redis (~> 3.0, >= 3.0.4)
73
73
  rest-client (1.6.7)
74
74
  mime-types (>= 1.16)
75
75
  rspec (3.0.0)
@@ -3,7 +3,7 @@ module Lita
3
3
  class EyDeploy < EyBase
4
4
 
5
5
  route(/ey deploy (\w*) (\w*)( [\w\/\.\-\_]*)?/i, :deploy, command: true, help: {
6
- "ey deploy [app] [env] <branch_name>" => "Deploy specified branch (or default) to a particular app env"
6
+ "ey deploy [app] [env] <git_ref>" => "Deploy specified tag / branch / ref (or default) to a particular app env"
7
7
  })
8
8
 
9
9
  route(/ey rollback (\w*) (\w*)/i, :rollback, command: true, help: {
@@ -24,12 +24,12 @@ module Lita
24
24
 
25
25
  response.reply "Deploy what to where?" and return unless valid_app?(app) && valid_env?(app, env)
26
26
 
27
- branch = (response.matches[0][2] || default_branch_for(app, env)).strip
27
+ git_ref = (response.matches[0][2] || default_branch_for(app, env)).strip
28
28
 
29
29
  do_if_can_access(response, app, env) do
30
- response.reply "Deploying #{app} branch '#{branch}' to #{env}"
30
+ response.reply "Deploying #{app} git ref '#{git_ref}' to #{env}"
31
31
 
32
- cmd = ey_deploy_cmd(app, env, branch)
32
+ cmd = ey_deploy_cmd(app, env, git_ref)
33
33
  Lita.logger.info cmd
34
34
  deploy_result = `#{cmd}`
35
35
 
@@ -91,8 +91,8 @@ module Lita
91
91
 
92
92
  private
93
93
 
94
- def ey_deploy_cmd(app, env, branch)
95
- "bundle exec ey deploy --app='#{ey_app(app)}' --environment='#{ey_env(app, env)}' --ref='refs/heads/#{branch}' --migrate='rake db:migrate' --api-token=#{config.api_token}"
94
+ def ey_deploy_cmd(app, env, git_ref)
95
+ "bundle exec ey deploy --app='#{ey_app(app)}' --environment='#{ey_env(app, env)}' -R '#{git_ref}' --migrate='rake db:migrate' --api-token=#{config.api_token}"
96
96
  end
97
97
 
98
98
  def ey_rollback_cmd(app, env)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-ey-deploy"
3
- spec.version = "0.0.5"
3
+ spec.version = "0.0.7"
4
4
  spec.authors = ["Carlos Paramio"]
5
5
  spec.email = ["cparamio@avallain.com"]
6
6
  spec.description = %q{A Lita handler for EngineYard deployments.}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-ey-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Paramio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
- rubygems_version: 2.1.11
165
+ rubygems_version: 2.0.3
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: A Lita handler for EngineYard deployments.