dtf 0.2.5 → 0.2.6
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/bin/dtf +3 -19
- data/doc/Dtf.html +1 -1
- data/doc/Dtf/DtfCommands.html +4 -4
- data/doc/_index.html +1 -1
- data/doc/class_list.html +1 -1
- data/doc/method_list.html +8 -8
- data/lib/dtf.rb +22 -1
- data/lib/dtf/{dtf_error_system.rb → error_system.rb} +0 -0
- data/lib/dtf/{dtf_help_system.rb → help_system.rb} +1 -1
- data/lib/dtf/version.rb +1 -1
- metadata +3 -3
data/bin/dtf
CHANGED
|
@@ -8,25 +8,9 @@ require 'dtf'
|
|
|
8
8
|
require 'thor'
|
|
9
9
|
|
|
10
10
|
# -- LOAD HELP SYSTEM
|
|
11
|
-
require 'dtf/
|
|
11
|
+
require 'dtf/help_system'
|
|
12
12
|
|
|
13
13
|
# -- LOAD ERROR SYSTEM
|
|
14
|
-
require 'dtf/
|
|
14
|
+
require 'dtf/error_system'
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
# -- START MAIN APPLICATION
|
|
18
|
-
# Ensure we have *all* required options for each possible sub_cmd
|
|
19
|
-
case @cmd
|
|
20
|
-
when "create_user"
|
|
21
|
-
Dtf::DtfCommands.create_user(@cmd_opts)
|
|
22
|
-
|
|
23
|
-
when "delete_user"
|
|
24
|
-
Dtf::DtfCommands.delete_user(@cmd, @cmd_opts)
|
|
25
|
-
|
|
26
|
-
when "create_vs"
|
|
27
|
-
Dtf::DtfCommands.create_vs(@cmd_opts)
|
|
28
|
-
|
|
29
|
-
when "delete_vs"
|
|
30
|
-
Dtf::DtfCommands.delete_vs(@cmd, @cmd_opts)
|
|
31
|
-
|
|
32
|
-
end
|
|
16
|
+
Dtf::Commands.process(@cmd, @cmd_opts)
|
data/doc/Dtf.html
CHANGED
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
|
|
95
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Dtf/
|
|
95
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Dtf/Commands.html" title="Dtf::Commands (class)">Commands</a></span>
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
</p>
|
data/doc/Dtf/DtfCommands.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
6
|
<title>
|
|
7
|
-
Class: Dtf::
|
|
7
|
+
Class: Dtf::Commands
|
|
8
8
|
|
|
9
9
|
— Documentation by YARD 0.8.2.1
|
|
10
10
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<a href="../_index.html">Index (D)</a> »
|
|
35
35
|
<span class='title'><span class='object_link'><a href="../Dtf.html" title="Dtf (module)">Dtf</a></span></span>
|
|
36
36
|
»
|
|
37
|
-
<span class="title">
|
|
37
|
+
<span class="title">Commands</span>
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
<iframe id="search_frame"></iframe>
|
|
65
65
|
|
|
66
|
-
<div id="content"><h1>Class: Dtf::
|
|
66
|
+
<div id="content"><h1>Class: Dtf::Commands
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
<ul class="fullTree">
|
|
79
79
|
<li>Object</li>
|
|
80
80
|
|
|
81
|
-
<li class="next">Dtf::
|
|
81
|
+
<li class="next">Dtf::Commands</li>
|
|
82
82
|
|
|
83
83
|
</ul>
|
|
84
84
|
<a href="#" class="inheritanceTree">show all</a>
|
data/doc/_index.html
CHANGED
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
</li>
|
|
119
119
|
|
|
120
120
|
<li>
|
|
121
|
-
<span class='object_link'><a href="Dtf/
|
|
121
|
+
<span class='object_link'><a href="Dtf/Commands.html" title="Dtf::Commands (class)">Commands</a></span>
|
|
122
122
|
|
|
123
123
|
<small>(Dtf)</small>
|
|
124
124
|
|
data/doc/class_list.html
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
<ul id="full_list" class="class">
|
|
47
47
|
<li><span class='object_link'><a href="top-level-namespace.html" title=" (root)">Top Level Namespace</a></span></li>
|
|
48
|
-
<li><span class='object_link'><a href="AnalysisCase.html" title="AnalysisCase (class)">AnalysisCase</a></span> < Base<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="CaseTest.html" title="CaseTest (class)">CaseTest</a></span> < Base<small class='search_info'>Top Level Namespace</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Dtf.html" title="Dtf (module)">Dtf</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="Dtf/
|
|
48
|
+
<li><span class='object_link'><a href="AnalysisCase.html" title="AnalysisCase (class)">AnalysisCase</a></span> < Base<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="CaseTest.html" title="CaseTest (class)">CaseTest</a></span> < Base<small class='search_info'>Top Level Namespace</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Dtf.html" title="Dtf (module)">Dtf</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="Dtf/Commands.html" title="Dtf::Commands (class)">Commands</a></span> < Object<small class='search_info'>Dtf</small></li></ul><li><span class='object_link'><a href="User.html" title="User (class)">User</a></span> < Base<small class='search_info'>Top Level Namespace</small></li><li><span class='object_link'><a href="VerificationSuite.html" title="VerificationSuite (class)">VerificationSuite</a></span> < Base<small class='search_info'>Top Level Namespace</small></li>
|
|
49
49
|
|
|
50
50
|
</ul>
|
|
51
51
|
</div>
|
data/doc/method_list.html
CHANGED
|
@@ -47,33 +47,33 @@
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
<li class="r1 ">
|
|
50
|
-
<span class='object_link'><a href="Dtf/
|
|
50
|
+
<span class='object_link'><a href="Dtf/Commands.html#create_user-class_method" title="Dtf::Commands.create_user (method)">create_user</a></span>
|
|
51
51
|
|
|
52
|
-
<small>Dtf::
|
|
52
|
+
<small>Dtf::Commands</small>
|
|
53
53
|
|
|
54
54
|
</li>
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
<li class="r2 ">
|
|
58
|
-
<span class='object_link'><a href="Dtf/
|
|
58
|
+
<span class='object_link'><a href="Dtf/Commands.html#create_vs-class_method" title="Dtf::Commands.create_vs (method)">create_vs</a></span>
|
|
59
59
|
|
|
60
|
-
<small>Dtf::
|
|
60
|
+
<small>Dtf::Commands</small>
|
|
61
61
|
|
|
62
62
|
</li>
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
<li class="r1 ">
|
|
66
|
-
<span class='object_link'><a href="Dtf/
|
|
66
|
+
<span class='object_link'><a href="Dtf/Commands.html#delete_user-class_method" title="Dtf::Commands.delete_user (method)">delete_user</a></span>
|
|
67
67
|
|
|
68
|
-
<small>Dtf::
|
|
68
|
+
<small>Dtf::Commands</small>
|
|
69
69
|
|
|
70
70
|
</li>
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
<li class="r2 ">
|
|
74
|
-
<span class='object_link'><a href="Dtf/
|
|
74
|
+
<span class='object_link'><a href="Dtf/Commands.html#delete_vs-class_method" title="Dtf::Commands.delete_vs (method)">delete_vs</a></span>
|
|
75
75
|
|
|
76
|
-
<small>Dtf::
|
|
76
|
+
<small>Dtf::Commands</small>
|
|
77
77
|
|
|
78
78
|
</li>
|
|
79
79
|
|
data/lib/dtf.rb
CHANGED
|
@@ -5,7 +5,28 @@ require "dtf/version"
|
|
|
5
5
|
module Dtf
|
|
6
6
|
load "#{File.join(File.dirname(__FILE__), "/config/environment.rb")}"
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class Commands
|
|
9
|
+
|
|
10
|
+
def process(cmd, cmd_opts)
|
|
11
|
+
case cmd
|
|
12
|
+
when "create_user"
|
|
13
|
+
create_user(cmd_opts)
|
|
14
|
+
|
|
15
|
+
when "delete_user"
|
|
16
|
+
delete_user(cmd, cmd_opts)
|
|
17
|
+
|
|
18
|
+
when "create_vs"
|
|
19
|
+
create_vs(cmd_opts)
|
|
20
|
+
|
|
21
|
+
when "delete_vs"
|
|
22
|
+
delete_vs(cmd, cmd_opts)
|
|
23
|
+
|
|
24
|
+
else
|
|
25
|
+
$stderr.puts "Unknown DTF sub-command: #{cmd.inspect}"
|
|
26
|
+
abort()
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
9
30
|
def self.create_user(cmd_opts)
|
|
10
31
|
if [:user_name_given, :full_name_given, :email_address_given].all? { |sym| cmd_opts.key?(sym) } then
|
|
11
32
|
user = User.where(user_name: cmd_opts[:user_name],
|
|
File without changes
|
data/lib/dtf/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dtf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -323,8 +323,8 @@ files:
|
|
|
323
323
|
- examples/db/config.yml
|
|
324
324
|
- lib/config/environment.rb
|
|
325
325
|
- lib/dtf.rb
|
|
326
|
-
- lib/dtf/
|
|
327
|
-
- lib/dtf/
|
|
326
|
+
- lib/dtf/error_system.rb
|
|
327
|
+
- lib/dtf/help_system.rb
|
|
328
328
|
- lib/dtf/version.rb
|
|
329
329
|
- lib/tasks/setup.thor
|
|
330
330
|
- spec/acceptance/create_basic_associations.feature
|