flydata 0.0.4.3 → 0.0.4.4
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/VERSION +1 -1
- data/flydata.gemspec +2 -2
- data/lib/flydata/command/sender.rb +10 -1
- data/lib/flydata/command/setup.rb +1 -0
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.4.
|
|
1
|
+
0.0.4.4
|
data/flydata.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "flydata"
|
|
8
|
-
s.version = "0.0.4.
|
|
8
|
+
s.version = "0.0.4.4"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Koichi Fujikawa"]
|
|
12
|
-
s.date = "2013-
|
|
12
|
+
s.date = "2013-07-09"
|
|
13
13
|
s.description = "FlyData Command Line Interface"
|
|
14
14
|
s.email = "sysadmin@flydata.co"
|
|
15
15
|
s.executables = ["flydata"]
|
|
@@ -34,7 +34,7 @@ EOF
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
say('Stopping sender process.')
|
|
37
|
-
if system("kill `cat #{FLYDATA_HOME}/flydata.pid`")
|
|
37
|
+
if system("kill `cat #{FLYDATA_HOME}/flydata.pid`") and wait_until_client_stop
|
|
38
38
|
say('Done.')
|
|
39
39
|
return true
|
|
40
40
|
end
|
|
@@ -77,6 +77,15 @@ EOF
|
|
|
77
77
|
end
|
|
78
78
|
raise "Somthing has gone wrong... Please try setup command again."
|
|
79
79
|
end
|
|
80
|
+
def wait_until_client_stop
|
|
81
|
+
retry_count = 5
|
|
82
|
+
1.upto(retry_count) do |i|
|
|
83
|
+
return true unless process_exist?
|
|
84
|
+
say("Waiting for the client stopping... (#{i}/#{retry_count})")
|
|
85
|
+
sleep 3
|
|
86
|
+
end
|
|
87
|
+
false
|
|
88
|
+
end
|
|
80
89
|
def wait_until_logs_uploaded
|
|
81
90
|
say('Starting to check the upload from your server.')
|
|
82
91
|
data_port = flydata.data_port.get
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flydata
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.4.
|
|
4
|
+
version: 0.0.4.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-07-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|
|
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
275
275
|
version: '0'
|
|
276
276
|
segments:
|
|
277
277
|
- 0
|
|
278
|
-
hash:
|
|
278
|
+
hash: -4284975229723736188
|
|
279
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
280
|
none: false
|
|
281
281
|
requirements:
|