flydata 0.0.4.3 → 0.0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4.3
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.3"
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-06-10"
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
@@ -21,6 +21,7 @@ module Flydata
21
21
  puts
22
22
  shown = show_registered_redshift_entries
23
23
  if shown
24
+ Flydata::Command::Sender.new.stop
24
25
  true
25
26
  else
26
27
  _run
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.3
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-06-10 00:00:00.000000000 Z
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: 1466505871354072558
278
+ hash: -4284975229723736188
279
279
  required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  none: false
281
281
  requirements: