testlab 1.19.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/commands/testlab.rb +8 -2
- data/lib/testlab/version.rb +1 -1
- data/lib/testlab.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjEwYmVkZDliOWFlMDFhZWFkOWU4NjVlYThiYzIwMzRmYTFkYzk1OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTE3ODJkZTM2OGEyNjYxN2U3M2M5NDc1NDhmZDZhMGJjMmJiM2I5Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2I4YzczOGVmYmVkY2YyOGM5ZDExOTY5YmUxNzBiMmNiNDUzMjhiMjVkYTE3
|
10
|
+
YzBkNDQ4YjEwYWNiNTAxNTA4MDhmNjI5NDRlZDZmN2FiYjM0ZDU4NTE3MTU2
|
11
|
+
MDU3MGNiM2FmNzFlNTBkZWRhZmU5YzYyNGJlYjRhYzg4YTlmMWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDI1Mjg2OTUyZmVlNzM0YWZhOGYxODMyODFmZWZhYWM0NTg1NjdkZDU2ZDc2
|
14
|
+
ZmY4NWRlZDAyYTc2MGU3YjkzM2I5NWIwZTY5YzYzZTcyNGFjNTg0ZWQyZTkw
|
15
|
+
MDhjZGY3ZjRmOGY3NDYyZjkxZGFhM2I4NTRmNzc5NzRiY2Q0Yzk=
|
data/lib/commands/testlab.rb
CHANGED
@@ -33,8 +33,11 @@ TestLab will then attempt to build the components, executing the following tasks
|
|
33
33
|
Create -> Up -> Provision
|
34
34
|
EOF
|
35
35
|
command :build do |build|
|
36
|
+
build.desc %(Force the actions verbatium, do not attempt to infer shortcuts; this has no effect for most operations)
|
37
|
+
build.switch [:f, :force]
|
38
|
+
|
36
39
|
build.action do |global_options, options, args|
|
37
|
-
@testlab.build
|
40
|
+
@testlab.build(options[:force])
|
38
41
|
end
|
39
42
|
end
|
40
43
|
|
@@ -93,8 +96,11 @@ Then components are built in the following order:
|
|
93
96
|
Nodes -> Networks -> Containers
|
94
97
|
EOF
|
95
98
|
command :recycle do |recycle|
|
99
|
+
recycle.desc %(Force the actions verbatium, do not attempt to infer shortcuts; this has no effect for most operations)
|
100
|
+
recycle.switch [:f, :force]
|
101
|
+
|
96
102
|
recycle.action do |global_options, options, args|
|
97
|
-
@testlab.recycle
|
103
|
+
@testlab.recycle(options[:force])
|
98
104
|
end
|
99
105
|
end
|
100
106
|
|
data/lib/testlab/version.rb
CHANGED
data/lib/testlab.rb
CHANGED
@@ -331,8 +331,8 @@ class TestLab
|
|
331
331
|
# all of our nodes, networks and containers.
|
332
332
|
#
|
333
333
|
# @return [Boolean] True if successful.
|
334
|
-
def build
|
335
|
-
method_proxy(:build)
|
334
|
+
def build(force=false)
|
335
|
+
method_proxy(:build, force)
|
336
336
|
|
337
337
|
true
|
338
338
|
end
|
@@ -368,9 +368,9 @@ class TestLab
|
|
368
368
|
# all of our nodes, networks and containers.
|
369
369
|
#
|
370
370
|
# @return [Boolean] True if successful.
|
371
|
-
def recycle
|
371
|
+
def recycle(force=false)
|
372
372
|
self.demolish
|
373
|
-
self.build
|
373
|
+
self.build(force)
|
374
374
|
|
375
375
|
true
|
376
376
|
end
|