testlab 0.7.2 → 0.7.3
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 +4 -3
- data/lib/testlab.rb +2 -1
- data/lib/testlab/utility/logger.rb +2 -0
- data/lib/testlab/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -26,11 +26,12 @@ 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.
|
29
|
+
0.7.2
|
30
30
|
|
31
31
|
GLOBAL OPTIONS
|
32
|
-
-l, --labfile=path/to/file - Path to Labfile (default: /home/zpatten/code/personal/testlab-repo/Labfile)
|
33
|
-
-
|
32
|
+
-l, --labfile=path/to/file - Path to Labfile: ${PWD}/Labfile (default: /home/zpatten/code/personal/testlab-repo/Labfile)
|
33
|
+
-r, --repo=path/to/directory - Path to Repository directory: ${PWD} (default: /home/zpatten/code/personal/testlab-repo)
|
34
|
+
-c, --config=path/to/directory - Path to Configuration directory: ${PWD}/.testlab-$(hostname -s) (default: /home/zpatten/code/personal/testlab-repo/.testlab-zsp-desktop)
|
34
35
|
--version - Display the program version
|
35
36
|
-v, --[no-]verbose - Show verbose output
|
36
37
|
-q, --[no-]quiet - Quiet mode
|
data/lib/testlab.rb
CHANGED
@@ -106,6 +106,7 @@ class TestLab
|
|
106
106
|
|
107
107
|
attr_accessor :config_dir
|
108
108
|
attr_accessor :repo_dir
|
109
|
+
attr_accessor :labfile_path
|
109
110
|
|
110
111
|
def initialize(options={})
|
111
112
|
self.ui = (options[:ui] || ZTK::UI.new)
|
@@ -115,7 +116,7 @@ class TestLab
|
|
115
116
|
@repo_dir = (options[:repo_dir] || Dir.pwd)
|
116
117
|
|
117
118
|
labfile = (options[:labfile] || File.join(Dir.pwd, 'Labfile'))
|
118
|
-
labfile_path
|
119
|
+
@labfile_path = ZTK::Locator.find(labfile)
|
119
120
|
@labfile = TestLab::Labfile.load(labfile_path)
|
120
121
|
@labfile.testlab = self
|
121
122
|
end
|
@@ -24,6 +24,8 @@ class TestLab
|
|
24
24
|
"hostname" => Socket.gethostname.inspect,
|
25
25
|
"program" => $0.to_s.inspect,
|
26
26
|
"config_dir" => testlab.config_dir.inspect,
|
27
|
+
"repo_dir" => testlab.repo_dir.inspect,
|
28
|
+
"labfile_path" => testlab.labfile_path.inspect,
|
27
29
|
"logdev" => testlab.ui.logger.logdev.inspect,
|
28
30
|
"version" => TestLab::VERSION
|
29
31
|
}
|
data/lib/testlab/version.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.7.
|
4
|
+
version: 0.7.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -303,7 +303,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
303
303
|
version: '0'
|
304
304
|
segments:
|
305
305
|
- 0
|
306
|
-
hash: -
|
306
|
+
hash: -2578795050458540128
|
307
307
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
308
308
|
none: false
|
309
309
|
requirements:
|
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
version: '0'
|
313
313
|
segments:
|
314
314
|
- 0
|
315
|
-
hash: -
|
315
|
+
hash: -2578795050458540128
|
316
316
|
requirements: []
|
317
317
|
rubyforge_project:
|
318
318
|
rubygems_version: 1.8.25
|