flydata 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ac62ecc4fbe5d87e45507d2dab80b8b627b783e
4
- data.tar.gz: 010df8e3d2b117cac3522e5ba18f5efe248b5ad6
3
+ metadata.gz: 197b34bb3ccfc2ed09015f6a13413ecdbda4f5ed
4
+ data.tar.gz: 0f04fd5270dee95ac4fe648ab5a8b2716302c5ce
5
5
  SHA512:
6
- metadata.gz: 5e5a8fd19176585e38f9cb5fa12c4f94bb3dacd7233b384c0735b97d2f605030c5f6ed8bfc244891534da7bc53b685e676e3c486dcda04d4eee4c12b6478302f
7
- data.tar.gz: a955da06702acbac1cce240b1ab1a9d5cf7f0190fe1033accbd8a8dc7f0ee1e9a9b8b69014579cb44849166d500e2fab15136fa529d6f06cd2fe100d4c18568d
6
+ metadata.gz: ff9fc62260afc8ce527de57edb70052f5cb35357e87f7db5ad12207ea2f0237c672bf3667eea92a79a8dc4b882ec2e484ca9e3e6aa58d52dcae24a56377e87a3
7
+ data.tar.gz: 98a99de769067b51ce61f92a4bc6bc40e2651dbf5886aa0c4006cc1121136869984d0d97e50c27b409e4cfa1bd84c5a5c96406831cfd5496bcfb1839b11a800b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
data/flydata.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: flydata 0.2.5 ruby lib
5
+ # stub: flydata 0.2.6 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "flydata"
9
- s.version = "0.2.5"
9
+ s.version = "0.2.6"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Koichi Fujikawa", "Masashi Miyazaki", "Matthew Luu", "Mak Inada", "Sriram NS"]
14
- s.date = "2014-09-19"
14
+ s.date = "2014-09-26"
15
15
  s.description = "FlyData Agent"
16
16
  s.email = "sysadmin@flydata.com"
17
17
  s.executables = ["fdmysqldump", "flydata", "serverinfo"]
data/lib/flydata/cli.rb CHANGED
@@ -32,10 +32,10 @@ module Flydata
32
32
  end
33
33
  rescue => e
34
34
  #raise e
35
- puts "! #{e.to_s}"
36
- puts
37
- puts
38
- print_usage
35
+ $stderr.puts "! #{e.to_s}"
36
+ $stderr.puts
37
+ $stderr.puts
38
+ $stderr.puts usage_text
39
39
  raise e if FLYDATA_DEBUG
40
40
  exit 1
41
41
  end
@@ -66,14 +66,9 @@ What's next?
66
66
 
67
67
  EOM
68
68
 
69
- NO_DE_SYNC_CANCEL_MESSAGE_TEMPLATE = <<-EOM
70
- FlyData Agent has been installed on your server successfully.
71
-
72
- To complete your installation and to add the `flydata` command, please run the
73
- following from the command line.
74
-
75
- $ source ~/.bashrc
76
-
69
+ NO_DE_CANCEL_MESSAGE_TEMPLATE = <<-EOM
70
+ FlyData Agent has been installed on your computer.
71
+ However, you need to create at least a data entry before start using FlyData.
77
72
 
78
73
  What's next?
79
74
 
@@ -85,7 +80,7 @@ What's next?
85
80
 
86
81
  def initial_run
87
82
  data_port = flydata.data_port.get
88
- dashboard_url = "#{flydata.flydata_api_host}/data_ports/#{data_port['id']}"
83
+ dashboard_url = "#{flydata.flydata_api_host}/dashboard"
89
84
  redshift_console_url = "#{flydata.flydata_api_host}/redshift_clusters/query/new"
90
85
  last_message = ALL_DONE_MESSAGE_TEMPLATE % [redshift_console_url, dashboard_url]
91
86
 
@@ -105,9 +100,8 @@ What's next?
105
100
  false
106
101
  end
107
102
  else
108
- need_restart = _run
109
- last_message = NO_DE_SYNC_CANCEL_MESSAGE_TEMPLATE % [dashboard_url] unless need_restart
110
- need_restart
103
+ last_message = NO_DE_CANCEL_MESSAGE_TEMPLATE % [dashboard_url]
104
+ false
111
105
  end
112
106
  end
113
107
  puts last_message
@@ -12,10 +12,6 @@ module Flydata
12
12
  [klass, method]
13
13
  end
14
14
 
15
- def print_usage
16
- puts usage_text
17
- end
18
-
19
15
  def usage_text
20
16
  text = ""
21
17
  text += <<-EOM
@@ -27,8 +27,8 @@ module Flydata
27
27
  context 'with options' do
28
28
  let(:options) { %w(-a --host-name localhost) }
29
29
  it 'returns with an error' do
30
- expect(subject).to receive(:puts).with('! Unknown options -a, --host-name').once
31
- allow(subject).to receive(:puts)
30
+ expect($stderr).to receive(:puts).with('! Unknown options -a, --host-name').once
31
+ allow($stderr).to receive(:puts)
32
32
 
33
33
  expect{ subject.run }.to terminate.with_code(1)
34
34
  end
@@ -62,8 +62,8 @@ module Flydata
62
62
  context 'with optionss' do
63
63
  let(:options) { %w(-a --host-name localhost) }
64
64
  it 'returns an error' do
65
- expect(subject).to receive(:puts).with('! Unknown options -a, --host-name').once
66
- allow(subject).to receive(:puts)
65
+ expect($stderr).to receive(:puts).with('! Unknown options -a, --host-name').once
66
+ allow($stderr).to receive(:puts)
67
67
 
68
68
  expect{ subject.run }.to terminate.with_code(1)
69
69
  end
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.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Fujikawa
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-09-19 00:00:00.000000000 Z
15
+ date: 2014-09-26 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rest-client