continuent-tools-core 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/continuent-tools-core.rb +19 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6e054000eca097227028c7e1207f5b974776e7c
|
4
|
+
data.tar.gz: 741e8405afad6f6e8c437f4c257a90409a9fea9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e629c48d5bdd89d9f746cb72ad0aa74d94b4d55a9d2ce1b6aacabfb2e1f877e829fd58ef513cf8d5c8e1a2f4f0e21280a2a7d6bab4f975e47c2e57e63b81729e
|
7
|
+
data.tar.gz: 64e88a15d565b05ca1d30c30bf58e8e60122da6b55ae7758379e8ab0cb6ec7c0aecbf087ebcb23bc71804838a5f4a5a677743b679aff449ac143ea1f4b8b9678
|
@@ -38,4 +38,23 @@ class TungstenUtil
|
|
38
38
|
forward_cmd_results?(original_fwd_state)
|
39
39
|
end
|
40
40
|
end
|
41
|
+
end
|
42
|
+
|
43
|
+
module TungstenScript
|
44
|
+
alias orig_validate validate
|
45
|
+
|
46
|
+
def validate
|
47
|
+
orig_validate()
|
48
|
+
|
49
|
+
@option_definitions.each{
|
50
|
+
|option_key,definition|
|
51
|
+
|
52
|
+
if definition[:required] == true
|
53
|
+
if opt(option_key).to_s() == ""
|
54
|
+
arg = definition[:on][0].split(" ")[0]
|
55
|
+
TU.error("Missing value for the #{arg} option")
|
56
|
+
end
|
57
|
+
end
|
58
|
+
}
|
59
|
+
end
|
41
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: continuent-tools-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Continuent
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_pure
|
@@ -150,5 +150,5 @@ rubyforge_project:
|
|
150
150
|
rubygems_version: 2.0.3
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
|
-
summary: Continuent
|
153
|
+
summary: Continuent Tungsten tools core functions
|
154
154
|
test_files: []
|