testlab 1.19.0 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjQ3NDM1Njk2ZWQwMjJmMDU0MWMyODcxNTk1OWVlYTExODFlZmQ0Yw==
4
+ MjEwYmVkZDliOWFlMDFhZWFkOWU4NjVlYThiYzIwMzRmYTFkYzk1OQ==
5
5
  data.tar.gz: !binary |-
6
- N2NlZjBhNTdkYTVmYjMxODg5NmQzZTJmNzFiZDAyNGQ1YjMxODBmMA==
6
+ MTE3ODJkZTM2OGEyNjYxN2U3M2M5NDc1NDhmZDZhMGJjMmJiM2I5Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWEyOGQyNzM4NDQ1ZGU1MmVjYTBlMzUyZTU5ZTA4MzgyMzc2NTM4NDBmZmI2
10
- YWZmZDM1YmE1Mjc1MjQyMWUxNmVhNzI2M2I0NTRlYTgwNTNjMTRjOGQ3MGI3
11
- ODcyM2Y0NWI1NWQ0NjRiNzliMWIwY2Y4ZGJhMDkyNTY4MzAwMzM=
9
+ Y2I4YzczOGVmYmVkY2YyOGM5ZDExOTY5YmUxNzBiMmNiNDUzMjhiMjVkYTE3
10
+ YzBkNDQ4YjEwYWNiNTAxNTA4MDhmNjI5NDRlZDZmN2FiYjM0ZDU4NTE3MTU2
11
+ MDU3MGNiM2FmNzFlNTBkZWRhZmU5YzYyNGJlYjRhYzg4YTlmMWM=
12
12
  data.tar.gz: !binary |-
13
- M2UxMThlZTIwOGZkODE2YjNkNjMwYzEwNWRjMjdkNTNjMDZiZTNmODk2ZDdk
14
- MDkxMmMzODRjNWMzOTUzZWY1MjQ4ZDM3ZjE5OTVlMmYzNmM2M2Q3YTdhZTcy
15
- ZmUxODNhYzUzOGE1NTc5ZTM5MWM0ZmQwMTE4NWU3YWYyZWRkM2I=
13
+ ZDI1Mjg2OTUyZmVlNzM0YWZhOGYxODMyODFmZWZhYWM0NTg1NjdkZDU2ZDc2
14
+ ZmY4NWRlZDAyYTc2MGU3YjkzM2I5NWIwZTY5YzYzZTcyNGFjNTg0ZWQyZTkw
15
+ MDhjZGY3ZjRmOGY3NDYyZjkxZGFhM2I4NTRmNzc5NzRiY2Q0Yzk=
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  class TestLab
2
2
  unless const_defined?(:VERSION)
3
3
  # TestLab Gem Version
4
- VERSION = "1.19.0"
4
+ VERSION = "1.20.0"
5
5
  end
6
6
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Patten