eventhub-command 0.6.5 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ef13dd3d746245a0551304ac68c205a32459ee5
4
- data.tar.gz: 2e79d5f91cd84e46a9efeaa8081132a21a1b6904
3
+ metadata.gz: b729ab1351958f518081b1b46cb7fc493506c068
4
+ data.tar.gz: e6588899bb7c47d796773ca0a197ed4f30fdb465
5
5
  SHA512:
6
- metadata.gz: 81fcbc1b4216193ec92b55ae331570bf71feca2ced3c78be735d2e54139db08651cc1b420986c930aa31e90eac41f32b402823144644385d78f5402fc7220707
7
- data.tar.gz: 363416e3c3e6217c976ee62647c62d9de493a4d39495932624a6658be2fe9f4a421072380253368eb707e66ff2c870ae5c152c8248a2f64011783cdcbbc5f7f0
6
+ metadata.gz: 3f463f86994bddac9eb6cf8544ec05e496696b2108c4b014e2fe01a01bd68dcad6a64e34fd37b297dd92ca776b33d265489281e433a69d6157d249bb19a54cd1
7
+ data.tar.gz: 7c6f2ba0225b2353a6dffc65cec75a4d08a7a04c0c3c24b98952db0e136201b197903f3841353965ffce5a83c4bebba03310045df580f2a0fa9e368578f1f0cc
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## 0.6.6 (2016-11-02)
2
+
3
+ Features:
4
+
5
+ - Custom sorting for go processors to make sure always inspector comes first when deploying multiple go processors
6
+
7
+ ## 0.6.5 (2016-09-09)
8
+
9
+ Features:
10
+
11
+ - Ruby processor deployment via inspector only
@@ -34,10 +34,6 @@ class Deployer::BaseDeployer
34
34
  options[:verbose]
35
35
  end
36
36
 
37
- def inspector?
38
- options[:inspector]
39
- end
40
-
41
37
  def via_scp?
42
38
  deploy_via == 'scp'
43
39
  end
@@ -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 inspector? && processor_name != 'inspector'
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 inspector? && processor_name != 'inspector'
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
@@ -1,3 +1,3 @@
1
1
  module Eh
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.6'
3
3
  end
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.5
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-09-09 00:00:00.000000000 Z
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
- - ".gitignore"
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: '0'
209
+ version: 1.9.3
225
210
  required_rubygems_version: !ruby/object:Gem::Requirement
226
211
  requirements:
227
212
  - - ">="
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- .DS_Store
data/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
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
@@ -1,5 +0,0 @@
1
- = eh
2
-
3
- Generate this with
4
- eh rdoc
5
- After you have described your command line interface
data/test/default_test.rb DELETED
@@ -1,14 +0,0 @@
1
- require 'test_helper'
2
-
3
- class DefaultTest < Test::Unit::TestCase
4
-
5
- def setup
6
- end
7
-
8
- def teardown
9
- end
10
-
11
- def test_the_truth
12
- assert true
13
- end
14
- end
data/test/test_helper.rb DELETED
@@ -1,9 +0,0 @@
1
- require 'test/unit'
2
-
3
- # Add test libraries you want to use here, e.g. mocha
4
-
5
- class Test::Unit::TestCase
6
-
7
- # Add global extensions to the test case class here
8
-
9
- end
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