paratrooper 3.0.0.beta2 → 3.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paratrooper/configuration.rb +2 -0
- data/lib/paratrooper/deploy.rb +1 -0
- data/lib/paratrooper/notifiers/screen_notifier.rb +5 -1
- data/lib/paratrooper/source_control.rb +1 -1
- data/lib/paratrooper/version.rb +1 -1
- data/paratrooper.gemspec +1 -1
- data/spec/paratrooper/configuration_spec.rb +28 -8
- data/spec/paratrooper/source_control_spec.rb +16 -10
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f46fd762d6a6a118bf4a77be498de394fe17eb56
|
4
|
+
data.tar.gz: a50f59f0e00017a1424d2608dfcaf822aaef8fa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 124c08920a1a40499a1fa4791d4d99256b1807b90143f1d7636905c6e49cf30dbdaa1df081de7f92414865e41031058c9aa1e88d885e044571bcbed854624845
|
7
|
+
data.tar.gz: 36b2abf903f42c80fc222cfba4b0dec516160ccd5d75647f58e17f5ccf3f2959fad16cd42c298cb15ae825220f4bfe0f1cbe90fce86c93ff35c3fe90679483f3
|
@@ -17,6 +17,7 @@ module Paratrooper
|
|
17
17
|
|
18
18
|
alias :branch= :branch_name=
|
19
19
|
alias :tag= :tag_name=
|
20
|
+
alias :match_tag= :match_tag_name=
|
20
21
|
|
21
22
|
def attributes=(attrs)
|
22
23
|
attrs.each do |method, value|
|
@@ -75,6 +76,7 @@ module Paratrooper
|
|
75
76
|
def force_push=(val)
|
76
77
|
@force_push= !!val
|
77
78
|
end
|
79
|
+
alias :force= :force_push=
|
78
80
|
|
79
81
|
def force_push
|
80
82
|
@force_push ||= false
|
data/lib/paratrooper/deploy.rb
CHANGED
@@ -44,7 +44,7 @@ module Paratrooper
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def update_repo_tag(options = {})
|
47
|
-
display("Updating Repo Tag: #{options[:
|
47
|
+
display("Updating Repo Tag: #{options[:reference_point]}")
|
48
48
|
end
|
49
49
|
|
50
50
|
def push_repo(options = {})
|
@@ -63,6 +63,10 @@ module Paratrooper
|
|
63
63
|
def app_restart(options = {})
|
64
64
|
display("Restarting application")
|
65
65
|
end
|
66
|
+
|
67
|
+
def deploy_finished(options = {})
|
68
|
+
display("Deploy finished")
|
69
|
+
end
|
66
70
|
end
|
67
71
|
end
|
68
72
|
end
|
data/lib/paratrooper/version.rb
CHANGED
data/paratrooper.gemspec
CHANGED
@@ -67,14 +67,6 @@ describe Paratrooper::Configuration do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
describe "branch=" do
|
71
|
-
specify "branch is set and @branch_name holds value" do
|
72
|
-
configuration.branch = "branch_name"
|
73
|
-
|
74
|
-
expect(configuration.branch_name).to eq("branch_name")
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
70
|
describe "protocol" do
|
79
71
|
context "with passed value" do
|
80
72
|
specify "passed value is returned" do
|
@@ -167,6 +159,13 @@ describe Paratrooper::Configuration do
|
|
167
159
|
end
|
168
160
|
end
|
169
161
|
|
162
|
+
describe "#force" do
|
163
|
+
it "writes value to #force_push" do
|
164
|
+
configuration.force = true
|
165
|
+
expect(configuration.force_push).to eq(true)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
170
169
|
describe "force_push?" do
|
171
170
|
context "when #force_push is truthy" do
|
172
171
|
it "returns true" do
|
@@ -349,4 +348,25 @@ describe Paratrooper::Configuration do
|
|
349
348
|
end
|
350
349
|
end
|
351
350
|
end
|
351
|
+
|
352
|
+
describe "#tag=" do
|
353
|
+
it "writes value to #tag_name" do
|
354
|
+
configuration.tag = "TAG_NAME"
|
355
|
+
expect(configuration.tag_name).to eq("TAG_NAME")
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
describe "#match_tag=" do
|
360
|
+
it "writes value to #match_tag_name" do
|
361
|
+
configuration.match_tag = "MATCH_TAG_NAME"
|
362
|
+
expect(configuration.match_tag_name).to eq("MATCH_TAG_NAME")
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
describe "#branch=" do
|
367
|
+
it "writes value to #branch_name" do
|
368
|
+
configuration.branch = "BRANCH_NAME"
|
369
|
+
expect(configuration.branch_name).to eq("BRANCH_NAME")
|
370
|
+
end
|
371
|
+
end
|
352
372
|
end
|
@@ -87,7 +87,7 @@ describe Paratrooper::SourceControl do
|
|
87
87
|
system_caller = double(:system_caller)
|
88
88
|
allow(system_caller).to receive(:execute).and_return("SHA\n")
|
89
89
|
config = instance_double(Paratrooper::Configuration,
|
90
|
-
|
90
|
+
tag_name: "SHA", system_caller: system_caller
|
91
91
|
)
|
92
92
|
source_control = described_class.new(config)
|
93
93
|
expect(source_control.deployment_sha).to eq("SHA")
|
@@ -99,7 +99,7 @@ describe Paratrooper::SourceControl do
|
|
99
99
|
allow(system_caller).to receive(:execute).and_return("SHA\n")
|
100
100
|
config = instance_double(Paratrooper::Configuration,
|
101
101
|
branch_name?: true, branch_name: "BRANCH_NAME",
|
102
|
-
system_caller: system_caller
|
102
|
+
tag_name: nil, system_caller: system_caller
|
103
103
|
)
|
104
104
|
source_control = described_class.new(config)
|
105
105
|
|
@@ -114,7 +114,7 @@ describe Paratrooper::SourceControl do
|
|
114
114
|
system_caller = double(:system_caller)
|
115
115
|
allow(system_caller).to receive(:execute).and_return("SHA\n")
|
116
116
|
config = instance_double(Paratrooper::Configuration,
|
117
|
-
branch_name?: false, system_caller: system_caller
|
117
|
+
branch_name?: false, tag_name: nil, system_caller: system_caller
|
118
118
|
)
|
119
119
|
source_control = described_class.new(config)
|
120
120
|
|
@@ -157,7 +157,8 @@ describe Paratrooper::SourceControl do
|
|
157
157
|
it 'pushes branch_name' do
|
158
158
|
config = instance_double(Paratrooper::Configuration, force_push: false,
|
159
159
|
deployment_host: "HOST", app_name: "APP", branch_name?: true,
|
160
|
-
branch_name: "BRANCH_NAME",
|
160
|
+
branch_name: "BRANCH_NAME", tag_name: nil,
|
161
|
+
system_caller: system_caller
|
161
162
|
)
|
162
163
|
source_control = described_class.new(config)
|
163
164
|
source_control.push_to_deploy
|
@@ -171,7 +172,8 @@ describe Paratrooper::SourceControl do
|
|
171
172
|
it 'pushes branch_name' do
|
172
173
|
config = instance_double(Paratrooper::Configuration, force_push: false,
|
173
174
|
deployment_host: "HOST", app_name: "APP", branch_name?: true,
|
174
|
-
branch_name: :BRANCH_NAME,
|
175
|
+
branch_name: :BRANCH_NAME, tag_name: nil,
|
176
|
+
system_caller: system_caller
|
175
177
|
)
|
176
178
|
source_control = described_class.new(config)
|
177
179
|
source_control.push_to_deploy
|
@@ -185,7 +187,8 @@ describe Paratrooper::SourceControl do
|
|
185
187
|
it 'pushes HEAD' do
|
186
188
|
config = instance_double(Paratrooper::Configuration, force_push: false,
|
187
189
|
deployment_host: "HOST", app_name: "APP", branch_name?: true,
|
188
|
-
branch_name: :head,
|
190
|
+
branch_name: :head, tag_name: nil,
|
191
|
+
system_caller: system_caller
|
189
192
|
)
|
190
193
|
source_control = described_class.new(config)
|
191
194
|
source_control.push_to_deploy
|
@@ -199,7 +202,8 @@ describe Paratrooper::SourceControl do
|
|
199
202
|
it 'pushes HEAD' do
|
200
203
|
config = instance_double(Paratrooper::Configuration, force_push: false,
|
201
204
|
deployment_host: "HOST", app_name: "APP", branch_name?: true,
|
202
|
-
branch_name: "HEAD",
|
205
|
+
branch_name: "HEAD", tag_name: nil,
|
206
|
+
system_caller: system_caller
|
203
207
|
)
|
204
208
|
source_control = described_class.new(config)
|
205
209
|
source_control.push_to_deploy
|
@@ -213,7 +217,8 @@ describe Paratrooper::SourceControl do
|
|
213
217
|
it "issues command to forcefully push to remote" do
|
214
218
|
config = instance_double(Paratrooper::Configuration,
|
215
219
|
system_caller: system_caller, force_push: true,
|
216
|
-
deployment_host: 'HOST', app_name: 'APP', branch_name?: false
|
220
|
+
deployment_host: 'HOST', app_name: 'APP', branch_name?: false,
|
221
|
+
tag_name: nil
|
217
222
|
)
|
218
223
|
source_control = described_class.new(config)
|
219
224
|
source_control.push_to_deploy
|
@@ -227,7 +232,8 @@ describe Paratrooper::SourceControl do
|
|
227
232
|
it "pushes branch_name" do
|
228
233
|
config = instance_double(Paratrooper::Configuration, force_push: false,
|
229
234
|
deployment_host: "HOST", app_name: "APP", branch_name?: true,
|
230
|
-
branch_name: "BRANCH_NAME",
|
235
|
+
branch_name: "BRANCH_NAME", tag_name: nil,
|
236
|
+
system_caller: system_caller
|
231
237
|
)
|
232
238
|
source_control = described_class.new(config)
|
233
239
|
source_control.push_to_deploy
|
@@ -241,7 +247,7 @@ describe Paratrooper::SourceControl do
|
|
241
247
|
it "pushes HEAD" do
|
242
248
|
config = instance_double(Paratrooper::Configuration, force_push: false,
|
243
249
|
deployment_host: "HOST", app_name: "APP", branch_name?: false,
|
244
|
-
system_caller: system_caller
|
250
|
+
tag_name: nil, system_caller: system_caller
|
245
251
|
)
|
246
252
|
source_control = described_class.new(config)
|
247
253
|
source_control.push_to_deploy
|
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: 3.0.0.
|
4
|
+
version: 3.0.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Polito
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -101,14 +101,14 @@ dependencies:
|
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
104
|
+
version: 0.44.4
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
111
|
+
version: 0.44.4
|
112
112
|
description: Library to create task for deployment to Heroku
|
113
113
|
email:
|
114
114
|
- matt.polito@gmail.com
|