paratrooper 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +4 -4
- data/README.md +3 -3
- data/lib/paratrooper/deploy.rb +2 -0
- data/lib/paratrooper/pending_migration_check.rb +1 -1
- data/lib/paratrooper/version.rb +1 -1
- data/spec/paratrooper/deploy_spec.rb +3 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
paratrooper (1.4.
|
4
|
+
paratrooper (1.4.1)
|
5
5
|
heroku-api (~> 0.3)
|
6
6
|
netrc (~> 0.7)
|
7
7
|
rendezvous (~> 0.0.1)
|
@@ -11,9 +11,9 @@ GEM
|
|
11
11
|
specs:
|
12
12
|
coderay (1.0.8)
|
13
13
|
diff-lcs (1.1.3)
|
14
|
-
excon (0.
|
15
|
-
heroku-api (0.3.
|
16
|
-
excon (~> 0.
|
14
|
+
excon (0.22.1)
|
15
|
+
heroku-api (0.3.11)
|
16
|
+
excon (~> 0.22.1)
|
17
17
|
method_source (0.8.1)
|
18
18
|
netrc (0.7.7)
|
19
19
|
pry (0.9.10)
|
data/README.md
CHANGED
@@ -69,16 +69,16 @@ This method works via a local Netrc file handled via the [Heroku Toolbelt][] and
|
|
69
69
|
|
70
70
|
## Git SSH key configuration
|
71
71
|
|
72
|
-
If you use multiple SSH keys for managing multiple accounts, for example in your `.ssh/config`, you can set the `
|
72
|
+
If you use multiple SSH keys for managing multiple accounts, for example in your `.ssh/config`, you can set the `deployment_host` option:
|
73
73
|
|
74
74
|
```ruby
|
75
|
-
Paratrooper::Deploy.new('app',
|
75
|
+
Paratrooper::Deploy.new('app', deployment_host: 'HOST')
|
76
76
|
```
|
77
77
|
|
78
78
|
This also works if you're using the [heroku-accounts](https://github.com/ddollar/heroku-accounts) plugin:
|
79
79
|
|
80
80
|
```ruby
|
81
|
-
Paratrooper::Deploy.new('app',
|
81
|
+
Paratrooper::Deploy.new('app', deployment_host: 'heroku.ACCOUNT_NAME')
|
82
82
|
```
|
83
83
|
|
84
84
|
## Tag Management
|
data/lib/paratrooper/deploy.rb
CHANGED
@@ -167,6 +167,8 @@ module Paratrooper
|
|
167
167
|
|
168
168
|
def migration_check=(obj)
|
169
169
|
@migration_check = obj || PendingMigrationCheck.new(match_tag, heroku, system_caller)
|
170
|
+
@migration_check.last_deployed_commit
|
171
|
+
@migration_check
|
170
172
|
end
|
171
173
|
|
172
174
|
# Internal: Calls commands meant to go to system
|
data/lib/paratrooper/version.rb
CHANGED
@@ -25,7 +25,9 @@ describe Paratrooper::Deploy do
|
|
25
25
|
)
|
26
26
|
end
|
27
27
|
let(:system_caller) { double(:system_caller) }
|
28
|
-
let(:migration_check)
|
28
|
+
let(:migration_check) do
|
29
|
+
double(:migration_check, last_deployed_commit: 'DEPLOYED_SHA')
|
30
|
+
end
|
29
31
|
let(:domain_response) do
|
30
32
|
double(:domain_response, body: [{'domain' => 'application_url'}])
|
31
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paratrooper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-05-
|
13
|
+
date: 2013-05-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|