idata 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ieval +8 -1
- data/bin/iexport +8 -0
- data/bin/iload +8 -0
- data/bin/ipatch +8 -0
- data/bin/ivalidate +8 -0
- data/lib/idata/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d55c439228876f9869d92de73084b23fcc7b2c6f
|
4
|
+
data.tar.gz: 20b014b0a45f5b567505aaf484e833173ba02180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d78eb5b5f6b7121063beada6be0473530cf3de581c4271f1adf9b138b1848c09420e19ebad287e6a2c9375bf1d03e314c3f7e9178b8bfc1296586e91f824f4a6
|
7
|
+
data.tar.gz: 80c935fbd64f007a657a699eade592c293251c1301d6658c507660199899ce96f2acec398654f60127d431a18ef8285a570792ec392b9fd7725d6f486052cbda
|
data/bin/ieval
CHANGED
@@ -79,7 +79,14 @@ rescue SystemExit => ex
|
|
79
79
|
exit
|
80
80
|
end
|
81
81
|
|
82
|
-
#
|
82
|
+
# Load parameters from ENVIRONMENT if exist
|
83
|
+
$options[:host] ||= ENV['HOST']
|
84
|
+
$options[:username] ||= ENV['USERNAME']
|
85
|
+
$options[:password] ||= ENV['PASSWORD']
|
86
|
+
$options[:listen] ||= ENV['LISTEN']
|
87
|
+
$options[:database] ||= ENV['DATABASE']
|
88
|
+
|
89
|
+
# validate parameters
|
83
90
|
if $options[:eval].nil?
|
84
91
|
puts "\nPlease specify Ruby script to execute: -e\n\n"
|
85
92
|
exit
|
data/bin/iexport
CHANGED
@@ -125,6 +125,14 @@ rescue SystemExit => ex
|
|
125
125
|
exit
|
126
126
|
end
|
127
127
|
|
128
|
+
# Load parameters from ENVIRONMENT if exist
|
129
|
+
$options[:host] ||= ENV['HOST']
|
130
|
+
$options[:username] ||= ENV['USERNAME']
|
131
|
+
$options[:password] ||= ENV['PASSWORD']
|
132
|
+
$options[:listen] ||= ENV['LISTEN']
|
133
|
+
$options[:database] ||= ENV['DATABASE']
|
134
|
+
|
135
|
+
# validate parameters
|
128
136
|
if $options[:format].nil?
|
129
137
|
puts "\nPlease specify input file format: -f\n\n"
|
130
138
|
exit
|
data/bin/iload
CHANGED
@@ -103,6 +103,14 @@ rescue SystemExit => ex
|
|
103
103
|
exit
|
104
104
|
end
|
105
105
|
|
106
|
+
# Load parameters from ENVIRONMENT if exist
|
107
|
+
$options[:host] ||= ENV['HOST']
|
108
|
+
$options[:username] ||= ENV['USERNAME']
|
109
|
+
$options[:password] ||= ENV['PASSWORD']
|
110
|
+
$options[:listen] ||= ENV['LISTEN']
|
111
|
+
$options[:database] ||= ENV['DATABASE']
|
112
|
+
|
113
|
+
# validate parameters
|
106
114
|
if $options[:input].nil?
|
107
115
|
puts "\nPlease specify input file: -i\n\n"
|
108
116
|
exit
|
data/bin/ipatch
CHANGED
@@ -67,6 +67,14 @@ rescue SystemExit => ex
|
|
67
67
|
exit
|
68
68
|
end
|
69
69
|
|
70
|
+
# Load parameters from ENVIRONMENT if exist
|
71
|
+
$options[:host] ||= ENV['HOST']
|
72
|
+
$options[:username] ||= ENV['USERNAME']
|
73
|
+
$options[:password] ||= ENV['PASSWORD']
|
74
|
+
$options[:listen] ||= ENV['LISTEN']
|
75
|
+
$options[:database] ||= ENV['DATABASE']
|
76
|
+
|
77
|
+
# validate parameters
|
70
78
|
if $options[:query].nil?
|
71
79
|
puts "\nPlease specify SQL query: -q\n\n"
|
72
80
|
exit
|
data/bin/ivalidate
CHANGED
@@ -124,6 +124,14 @@ rescue SystemExit => ex
|
|
124
124
|
exit
|
125
125
|
end
|
126
126
|
|
127
|
+
# Load parameters from ENVIRONMENT if exist
|
128
|
+
$options[:host] ||= ENV['HOST']
|
129
|
+
$options[:username] ||= ENV['USERNAME']
|
130
|
+
$options[:password] ||= ENV['PASSWORD']
|
131
|
+
$options[:listen] ||= ENV['LISTEN']
|
132
|
+
$options[:database] ||= ENV['DATABASE']
|
133
|
+
|
134
|
+
# validate parameters
|
127
135
|
if $options[:table].nil?
|
128
136
|
puts "\nPlease specify table name: -t\n\n"
|
129
137
|
exit
|
data/lib/idata/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nghi Pham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|