eventhub-command 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/deployer/base_deployer.rb +0 -4
- data/lib/deployer/go_deployer.rb +17 -6
- data/lib/eh/version.rb +1 -1
- metadata +6 -21
- data/.gitignore +0 -18
- data/Gemfile +0 -2
- data/Rakefile +0 -44
- data/eh.gemspec +0 -31
- data/eh.rdoc +0 -5
- data/test/default_test.rb +0 -14
- data/test/test_helper.rb +0 -9
- data/todo.txt +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b729ab1351958f518081b1b46cb7fc493506c068
|
4
|
+
data.tar.gz: e6588899bb7c47d796773ca0a197ed4f30fdb465
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f463f86994bddac9eb6cf8544ec05e496696b2108c4b014e2fe01a01bd68dcad6a64e34fd37b297dd92ca776b33d265489281e433a69d6157d249bb19a54cd1
|
7
|
+
data.tar.gz: 7c6f2ba0225b2353a6dffc65cec75a4d08a7a04c0c3c24b98952db0e136201b197903f3841353965ffce5a83c4bebba03310045df580f2a0fa9e368578f1f0cc
|
data/CHANGELOG.md
ADDED
data/lib/deployer/go_deployer.rb
CHANGED
@@ -15,16 +15,15 @@ class Deployer::GoDeployer < Deployer::BaseDeployer
|
|
15
15
|
|
16
16
|
update_cached_copy(executor)
|
17
17
|
|
18
|
-
|
19
18
|
# fetch processor_names unless they have been passed as an argument to the initializer
|
20
19
|
processor_names_to_deploy = resolve_processor_names(executor, options)
|
21
|
-
processor_names_to_deploy.each do |processor_name|
|
20
|
+
processor_names_to_deploy.sort(& go_sorter).each do |processor_name|
|
22
21
|
puts
|
23
22
|
puts "Deploying #{processor_name}".light_blue.on_blue
|
24
23
|
log_deployment(executor, "Deploying #{processor_name} via #{deploy_via} from #{cached_copy_dir}")
|
25
24
|
|
26
25
|
# stop old one
|
27
|
-
if
|
26
|
+
if processor_name != 'inspector'
|
28
27
|
cmd = inspector_command('stop', processor_name)
|
29
28
|
executor.execute(cmd, abort_on_error: false, comment: "Request to stop component")
|
30
29
|
else
|
@@ -49,11 +48,13 @@ class Deployer::GoDeployer < Deployer::BaseDeployer
|
|
49
48
|
executor.execute("ln -s #{pids_dir} #{processor_dir(processor_name, 'pids')}")
|
50
49
|
|
51
50
|
# start new one
|
52
|
-
if
|
51
|
+
if processor_name == 'inspector'
|
52
|
+
# default start
|
53
|
+
executor.execute("cd #{processor_dir(processor_name)} && ./#{processor_name} -d -e $EH_ENV")
|
54
|
+
else
|
55
|
+
# startig go via inspector
|
53
56
|
cmd = inspector_command('start', processor_name)
|
54
57
|
executor.execute(cmd, abort_on_error: false, comment: "Request to start component")
|
55
|
-
else
|
56
|
-
executor.execute("cd #{processor_dir(processor_name)} && ./#{processor_name} -d -e $EH_ENV")
|
57
58
|
end
|
58
59
|
end
|
59
60
|
end
|
@@ -119,4 +120,14 @@ class Deployer::GoDeployer < Deployer::BaseDeployer
|
|
119
120
|
fetched
|
120
121
|
end
|
121
122
|
|
123
|
+
# custom go sorting makes sure inspector is always first if multiple go apps are given
|
124
|
+
#
|
125
|
+
def go_sorter
|
126
|
+
->(a, b) do
|
127
|
+
return -1 if a =~ /inspector/i
|
128
|
+
return 1 if b =~ /inspector/i
|
129
|
+
a <=> b
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
122
133
|
end
|
data/lib/eh/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventhub-command
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pascal Betz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -159,17 +159,11 @@ email:
|
|
159
159
|
executables:
|
160
160
|
- eh
|
161
161
|
extensions: []
|
162
|
-
extra_rdoc_files:
|
163
|
-
- README.md
|
164
|
-
- eh.rdoc
|
162
|
+
extra_rdoc_files: []
|
165
163
|
files:
|
166
|
-
-
|
167
|
-
- Gemfile
|
164
|
+
- CHANGELOG.md
|
168
165
|
- README.md
|
169
|
-
- Rakefile
|
170
166
|
- bin/eh
|
171
|
-
- eh.gemspec
|
172
|
-
- eh.rdoc
|
173
167
|
- lib/deployer.rb
|
174
168
|
- lib/deployer/base_deployer.rb
|
175
169
|
- lib/deployer/config_deployer.rb
|
@@ -200,28 +194,19 @@ files:
|
|
200
194
|
- lib/packager/go.rb
|
201
195
|
- lib/packager/rails.rb
|
202
196
|
- lib/packager/ruby.rb
|
203
|
-
- test/default_test.rb
|
204
|
-
- test/test_helper.rb
|
205
|
-
- todo.txt
|
206
197
|
homepage: http://github.com/thomis/eventhub-command
|
207
198
|
licenses:
|
208
199
|
- MIT
|
209
200
|
metadata: {}
|
210
201
|
post_install_message:
|
211
|
-
rdoc_options:
|
212
|
-
- "--title"
|
213
|
-
- eh
|
214
|
-
- "--main"
|
215
|
-
- README.rdoc
|
216
|
-
- "-ri"
|
202
|
+
rdoc_options: []
|
217
203
|
require_paths:
|
218
204
|
- lib
|
219
|
-
- lib
|
220
205
|
required_ruby_version: !ruby/object:Gem::Requirement
|
221
206
|
requirements:
|
222
207
|
- - ">="
|
223
208
|
- !ruby/object:Gem::Version
|
224
|
-
version:
|
209
|
+
version: 1.9.3
|
225
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
211
|
requirements:
|
227
212
|
- - ">="
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
require 'rake/clean'
|
2
|
-
require 'rubygems'
|
3
|
-
require 'rubygems/package_task'
|
4
|
-
require 'rdoc/task'
|
5
|
-
require 'cucumber'
|
6
|
-
require 'cucumber/rake/task'
|
7
|
-
Rake::RDocTask.new do |rd|
|
8
|
-
rd.main = "README.rdoc"
|
9
|
-
rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
|
10
|
-
rd.title = 'Your application title'
|
11
|
-
end
|
12
|
-
|
13
|
-
spec = eval(File.read('eh.gemspec'))
|
14
|
-
|
15
|
-
Gem::PackageTask.new(spec) do |pkg|
|
16
|
-
end
|
17
|
-
CUKE_RESULTS = 'results.html'
|
18
|
-
CLEAN << CUKE_RESULTS
|
19
|
-
desc 'Run features'
|
20
|
-
Cucumber::Rake::Task.new(:features) do |t|
|
21
|
-
opts = "features --format html -o #{CUKE_RESULTS} --format progress -x"
|
22
|
-
opts += " --tags #{ENV['TAGS']}" if ENV['TAGS']
|
23
|
-
t.cucumber_opts = opts
|
24
|
-
t.fork = false
|
25
|
-
end
|
26
|
-
|
27
|
-
desc 'Run features tagged as work-in-progress (@wip)'
|
28
|
-
Cucumber::Rake::Task.new('features:wip') do |t|
|
29
|
-
tag_opts = ' --tags ~@pending'
|
30
|
-
tag_opts = ' --tags @wip'
|
31
|
-
t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x -s#{tag_opts}"
|
32
|
-
t.fork = false
|
33
|
-
end
|
34
|
-
|
35
|
-
task :cucumber => :features
|
36
|
-
task 'cucumber:wip' => 'features:wip'
|
37
|
-
task :wip => 'features:wip'
|
38
|
-
require 'rake/testtask'
|
39
|
-
Rake::TestTask.new do |t|
|
40
|
-
t.libs << "test"
|
41
|
-
t.test_files = FileList['test/*_test.rb']
|
42
|
-
end
|
43
|
-
|
44
|
-
task :default => [:test,:features]
|
data/eh.gemspec
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
# Ensure we require the local version and not one we might have installed already
|
2
|
-
require File.join([File.dirname(__FILE__),'lib','eh','version.rb'])
|
3
|
-
spec = Gem::Specification.new do |s|
|
4
|
-
s.name = 'eventhub-command'
|
5
|
-
s.version = Eh::VERSION
|
6
|
-
s.author = ['Pascal Betz','Thomas Steiner']
|
7
|
-
s.email = ['pascal.betz@simplificator.com','thomas.steiner@ikey.ch']
|
8
|
-
s.homepage = 'http://github.com/thomis/eventhub-command'
|
9
|
-
s.platform = Gem::Platform::RUBY
|
10
|
-
s.description = 'Event Hub Command Line Tool which supports you with various Event Hub related administrative development features.'
|
11
|
-
s.summary = 'Event Hub Command Line Tool'
|
12
|
-
s.license = "MIT"
|
13
|
-
s.files = `git ls-files`.split("
|
14
|
-
")
|
15
|
-
s.require_paths << 'lib'
|
16
|
-
s.has_rdoc = true
|
17
|
-
s.extra_rdoc_files = ['README.md','eh.rdoc']
|
18
|
-
s.rdoc_options << '--title' << 'eh' << '--main' << 'README.rdoc' << '-ri'
|
19
|
-
s.bindir = 'bin'
|
20
|
-
s.executables << 'eh'
|
21
|
-
s.add_development_dependency('rake', '~> 10.1')
|
22
|
-
s.add_development_dependency('rdoc', '~> 4.1')
|
23
|
-
s.add_development_dependency('aruba', '~> 0.5')
|
24
|
-
s.add_runtime_dependency('gli','2.12.0')
|
25
|
-
s.add_runtime_dependency('rubyzip', '~> 1.0')
|
26
|
-
s.add_runtime_dependency('activesupport', '~> 4.1')
|
27
|
-
s.add_runtime_dependency('net-ssh', '~> 2.9')
|
28
|
-
s.add_runtime_dependency('colorize', '~> 0.7')
|
29
|
-
s.add_runtime_dependency('highline', '~> 1.7')
|
30
|
-
s.add_runtime_dependency('parseconfig', '~> 1.0')
|
31
|
-
end
|
data/eh.rdoc
DELETED
data/test/default_test.rb
DELETED
data/test/test_helper.rb
DELETED
data/todo.txt
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
-- -------------------------------------
|
2
|
-
-- to do
|
3
|
-
-- -------------------------------------
|
4
|
-
|
5
|
-
- eh relase -r or --repository plate_store or http path -u user -p password
|
6
|
-
- folder filter, default and customize
|
7
|
-
- extension filter, default and customize
|
8
|
-
- it could take config settings from a local .ehconfig file
|