eventhub-command 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deployer/ruby_deployer.rb +12 -1
- data/lib/eh/commands/deploy.rb +1 -1
- data/lib/eh/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 087ac1a9dffbcab8fcabdc8ba5a3b96de329757f
|
4
|
+
data.tar.gz: 12573853ff61998cb9ab0d0b681e265b772cd80f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6b7cf38a6820e2599516805c70d4f06c064c99b2e12cd2a506d70f2490318adebca339e883aa89f8273d6b4ac073ba203f699b2d1dc885f44ff0e5596cfa451
|
7
|
+
data.tar.gz: 9b508add2bbea8f30284bf73c260d51106a4883bb40f2fd42213c7d3226558705c5bdda82f6bec35ed65cebe7526d42ae1ee992f7c5f4c4909fa0c104ba0f2a2
|
@@ -18,7 +18,7 @@ class Deployer::RubyDeployer < Deployer::BaseDeployer
|
|
18
18
|
|
19
19
|
# fetch processor_names unless they have been passed as an argument to the initializer
|
20
20
|
processor_names_to_deploy = resolve_processor_names(executor, options)
|
21
|
-
processor_names_to_deploy.each do |processor_name|
|
21
|
+
processor_names_to_deploy.sort(& ruby_sorter).each do |processor_name|
|
22
22
|
puts
|
23
23
|
puts "Deploying #{processor_name}".light_blue.on_blue
|
24
24
|
log_deployment(executor, "Deploying #{processor_name} via #{deploy_via} from #{cached_copy_dir}")
|
@@ -114,4 +114,15 @@ class Deployer::RubyDeployer < Deployer::BaseDeployer
|
|
114
114
|
fetched
|
115
115
|
end
|
116
116
|
|
117
|
+
|
118
|
+
# custom ruby sorting makes sure dispatcher is always first if multiple go apps are given
|
119
|
+
#
|
120
|
+
def ruby_sorter
|
121
|
+
->(a, b) do
|
122
|
+
return -1 if a =~ /disaptcher/i
|
123
|
+
return 1 if b =~ /dispatcher/i
|
124
|
+
a <=> b
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
117
128
|
end
|
data/lib/eh/commands/deploy.rb
CHANGED
@@ -11,10 +11,10 @@ command :deploy do |c|
|
|
11
11
|
c.action do |global_options, options, arguments|
|
12
12
|
forward_arguments = arguments.join(' ')
|
13
13
|
deploy_config(options, forward_arguments)
|
14
|
+
deploy_console(options, forward_arguments)
|
14
15
|
deploy_go(options, forward_arguments)
|
15
16
|
deploy_ruby(options, forward_arguments)
|
16
17
|
deploy_mule(options, forward_arguments)
|
17
|
-
deploy_console(options, forward_arguments)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
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.7
|
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-11-
|
12
|
+
date: 2016-11-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.
|
217
|
+
rubygems_version: 2.5.1
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Event Hub Command Line Tool
|