flydata 0.2.5 → 0.2.6
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/flydata.gemspec +3 -3
- data/lib/flydata/cli.rb +4 -4
- data/lib/flydata/command/setup.rb +6 -12
- data/lib/flydata/helpers.rb +0 -4
- data/spec/flydata/cli_spec.rb +4 -4
- 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: 197b34bb3ccfc2ed09015f6a13413ecdbda4f5ed
|
4
|
+
data.tar.gz: 0f04fd5270dee95ac4fe648ab5a8b2716302c5ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff9fc62260afc8ce527de57edb70052f5cb35357e87f7db5ad12207ea2f0237c672bf3667eea92a79a8dc4b882ec2e484ca9e3e6aa58d52dcae24a56377e87a3
|
7
|
+
data.tar.gz: 98a99de769067b51ce61f92a4bc6bc40e2651dbf5886aa0c4006cc1121136869984d0d97e50c27b409e4cfa1bd84c5a5c96406831cfd5496bcfb1839b11a800b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
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
|
+
# 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.
|
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-
|
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
@@ -66,14 +66,9 @@ What's next?
|
|
66
66
|
|
67
67
|
EOM
|
68
68
|
|
69
|
-
|
70
|
-
FlyData Agent has been installed on your
|
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}/
|
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
|
-
|
109
|
-
|
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
|
data/lib/flydata/helpers.rb
CHANGED
data/spec/flydata/cli_spec.rb
CHANGED
@@ -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(
|
31
|
-
allow(
|
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(
|
66
|
-
allow(
|
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.
|
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-
|
15
|
+
date: 2014-09-26 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rest-client
|