testlab 0.8.1 → 0.8.2
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.
- data/README.md +18 -18
- data/lib/testlab/providers/vagrant.rb +2 -2
- data/lib/testlab/version.rb +1 -1
- data/lib/testlab.rb +2 -0
- metadata +3 -3
data/README.md
CHANGED
@@ -26,11 +26,11 @@ The TestLab command-line program `tl` follows in the style of git:
|
|
26
26
|
tl [global options] command [command options] [arguments...]
|
27
27
|
|
28
28
|
VERSION
|
29
|
-
0.
|
29
|
+
0.8.1
|
30
30
|
|
31
31
|
GLOBAL OPTIONS
|
32
32
|
-l, --labfile=path/to/file - Path to Labfile: ${REPO}/Labfile (default: none)
|
33
|
-
-r, --repo=path/to/directory - Path to Repository directory: ${PWD} (default: /home/zpatten/code/personal/testlab-repo
|
33
|
+
-r, --repo=path/to/directory - Path to Repository directory: ${PWD} (default: /home/zpatten/code/personal/testlab-repo)
|
34
34
|
-c, --config=path/to/directory - Path to Configuration directory: ${REPO}/.testlab-$(hostname -s) (default: none)
|
35
35
|
--version - Display the program version
|
36
36
|
-v, --[no-]verbose - Show verbose output
|
@@ -39,30 +39,30 @@ The TestLab command-line program `tl` follows in the style of git:
|
|
39
39
|
|
40
40
|
COMMANDS
|
41
41
|
help - Shows a list of commands or help for one command
|
42
|
-
container - Manage containers
|
43
|
-
network - Manage networks
|
44
|
-
node - Manage nodes
|
45
|
-
create - Create the
|
46
|
-
destroy - Destroy the
|
47
|
-
up -
|
48
|
-
down -
|
49
|
-
setup -
|
50
|
-
teardown -
|
51
|
-
build - Build the
|
52
|
-
demolish - Demolish the
|
53
|
-
status - Display
|
42
|
+
container - Manage lab containers
|
43
|
+
network - Manage lab networks
|
44
|
+
node - Manage lab nodes
|
45
|
+
create - Create the lab components
|
46
|
+
destroy - Destroy the lab components
|
47
|
+
up - On-line the lab components
|
48
|
+
down - Off-line the lab components
|
49
|
+
setup - Provision the lab components
|
50
|
+
teardown - De-provision the lab components
|
51
|
+
build - Build the lab
|
52
|
+
demolish - Demolish the lab
|
53
|
+
status - Display the lab status
|
54
54
|
|
55
55
|
You stand up your lab with the following command:
|
56
56
|
|
57
57
|
tl build
|
58
58
|
|
59
|
-
You can down the entire lab (this would only down the containers on the Local provider for example):
|
59
|
+
You can down the entire lab (this would only down the containers and networks on the Local provider for example):
|
60
60
|
|
61
61
|
tl down
|
62
62
|
|
63
|
-
You can also
|
63
|
+
You can also demolish it (only works for VM backed providers; this would be a NO-OP on the Local provider for example):
|
64
64
|
|
65
|
-
tl
|
65
|
+
tl demolish
|
66
66
|
|
67
67
|
## Getting Help
|
68
68
|
|
@@ -78,7 +78,7 @@ TestLab uses the GLI RubyGem, which gives us a command line pattern similar to t
|
|
78
78
|
Almost all commands dealing will containers will take this argument:
|
79
79
|
|
80
80
|
COMMAND OPTIONS
|
81
|
-
-n, --name=container -
|
81
|
+
-n, --name=container[,container,...] - Optional container ID or comma separated list of container IDs (default: none)
|
82
82
|
|
83
83
|
You can interact with containers via SSH:
|
84
84
|
|
@@ -54,8 +54,8 @@ class TestLab
|
|
54
54
|
def destroy
|
55
55
|
!self.exists? and raise VagrantError, MSG_NO_LAB
|
56
56
|
|
57
|
-
self.down
|
58
|
-
self.vagrant_cli("destroy", "--force", self.instance_id)
|
57
|
+
self.alive? and self.down
|
58
|
+
self.exists? and self.vagrant_cli("destroy", "--force", self.instance_id)
|
59
59
|
|
60
60
|
true
|
61
61
|
end
|
data/lib/testlab/version.rb
CHANGED
data/lib/testlab.rb
CHANGED
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: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -329,7 +329,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
329
329
|
version: '0'
|
330
330
|
segments:
|
331
331
|
- 0
|
332
|
-
hash:
|
332
|
+
hash: 3757036604992318209
|
333
333
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
334
334
|
none: false
|
335
335
|
requirements:
|
@@ -338,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
338
338
|
version: '0'
|
339
339
|
segments:
|
340
340
|
- 0
|
341
|
-
hash:
|
341
|
+
hash: 3757036604992318209
|
342
342
|
requirements: []
|
343
343
|
rubyforge_project:
|
344
344
|
rubygems_version: 1.8.25
|