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 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.7.6
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/vendor/checkouts/testlab)
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 test lab
46
- destroy - Destroy the test lab
47
- up - Online the test lab
48
- down - Offline the test lab
49
- setup - Setup the test lab infrastructure
50
- teardown - Teardown the test lab infrastructure
51
- build - Build the test lab infrastructure
52
- demolish - Demolish the test lab infrastructure
53
- status - Display information on the status of the test lab
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 destroy it (only works for VM backed providers; this would be a NO-OP on the Local provider for example):
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 destroy
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 - Container ID or Name (default: none)
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
@@ -1,6 +1,6 @@
1
1
  class TestLab
2
2
  unless const_defined?(:VERSION)
3
3
  # TestLab Gem Version
4
- VERSION = "0.8.1"
4
+ VERSION = "0.8.2"
5
5
  end
6
6
  end
data/lib/testlab.rb CHANGED
@@ -157,6 +157,8 @@ class TestLab
157
157
  def boot
158
158
  @labfile = TestLab::Labfile.load(labfile_path)
159
159
  @labfile.testlab = self
160
+
161
+ Dir.chdir(@repo_dir)
160
162
  end
161
163
 
162
164
  # Test Lab Nodes
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.1
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: 3620210825498446114
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: 3620210825498446114
341
+ hash: 3757036604992318209
342
342
  requirements: []
343
343
  rubyforge_project:
344
344
  rubygems_version: 1.8.25