eventhub-command 0.6.4 → 0.6.5
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/lib/deployer/ruby_deployer.rb +4 -12
- data/lib/eh/commands/deploy.rb +2 -3
- data/lib/eh/version.rb +1 -1
- data/todo.txt +1 -2
- 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: 9ef13dd3d746245a0551304ac68c205a32459ee5
|
4
|
+
data.tar.gz: 2e79d5f91cd84e46a9efeaa8081132a21a1b6904
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81fcbc1b4216193ec92b55ae331570bf71feca2ced3c78be735d2e54139db08651cc1b420986c930aa31e90eac41f32b402823144644385d78f5402fc7220707
|
7
|
+
data.tar.gz: 363416e3c3e6217c976ee62647c62d9de493a4d39495932624a6658be2fe9f4a421072380253368eb707e66ff2c870ae5c152c8248a2f64011783cdcbbc5f7f0
|
@@ -24,12 +24,8 @@ class Deployer::RubyDeployer < Deployer::BaseDeployer
|
|
24
24
|
log_deployment(executor, "Deploying #{processor_name} via #{deploy_via} from #{cached_copy_dir}")
|
25
25
|
|
26
26
|
# stop old one
|
27
|
-
|
28
|
-
|
29
|
-
executor.execute(cmd, abort_on_error: false, comment: "Request to stop component")
|
30
|
-
else
|
31
|
-
executor.execute("kill -s TERM $(cat #{File.join(pids_dir, processor_name)}.pid)", abort_on_error: false, comment: "This is not sooo important")
|
32
|
-
end
|
27
|
+
cmd = inspector_command('stop', processor_name)
|
28
|
+
executor.execute(cmd, abort_on_error: false, comment: "Request to stop component")
|
33
29
|
|
34
30
|
# unzip package
|
35
31
|
target = deploy_dir('ruby')
|
@@ -52,12 +48,8 @@ class Deployer::RubyDeployer < Deployer::BaseDeployer
|
|
52
48
|
executor.execute("cd #{processor_dir(processor_name)} && bundle install --without test")
|
53
49
|
|
54
50
|
# start new one
|
55
|
-
|
56
|
-
|
57
|
-
executor.execute(cmd, abort_on_error: false, comment: "Request to stop component")
|
58
|
-
else
|
59
|
-
executor.execute("cd #{processor_dir(processor_name)} && bundle exec ruby #{processor_name}.rb -d -e $EH_ENV")
|
60
|
-
end
|
51
|
+
cmd = inspector_command('start', processor_name)
|
52
|
+
executor.execute(cmd, abort_on_error: false, comment: "Request to stop component")
|
61
53
|
end
|
62
54
|
end
|
63
55
|
end
|
data/lib/eh/commands/deploy.rb
CHANGED
@@ -5,7 +5,6 @@ command :deploy do |c|
|
|
5
5
|
c.flag([:tag], desc: 'tag', type: String, long_desc: 'What tag to deploy. Only when deploy_via=scm', default_value: nil)
|
6
6
|
c.switch([:v, :verbose], :desc => 'Show additional output.')
|
7
7
|
c.flag([:deploy_via], desc: 'where to deploy from', type: String, long_desc: 'deploy via scm or scp. If you use scp then the working_dir is packaged and copied tot the servers', default_value: 'svn')
|
8
|
-
c.switch([:i, :inspector], desc: 'start/stop via inspector')
|
9
8
|
|
10
9
|
c.desc 'deploy all'
|
11
10
|
c.command :all do |c|
|
@@ -77,11 +76,11 @@ command :deploy do |c|
|
|
77
76
|
private
|
78
77
|
|
79
78
|
def deploy_ruby(options, forward_arguments)
|
80
|
-
system "#{extend_command('deploy ruby')} #{
|
79
|
+
system "#{extend_command('deploy ruby')} #{copy_options(options, :stage, :branch, :tag, :verbose)} #{forward_arguments}"
|
81
80
|
end
|
82
81
|
|
83
82
|
def deploy_go(options, forward_arguments)
|
84
|
-
system "#{extend_command('deploy go')} #{
|
83
|
+
system "#{extend_command('deploy go')} #{copy_options(options, :stage, :branch, :tag, :verbose)} #{forward_arguments}"
|
85
84
|
end
|
86
85
|
|
87
86
|
def deploy_console(options, forward_arguments)
|
data/lib/eh/version.rb
CHANGED
data/todo.txt
CHANGED
@@ -4,6 +4,5 @@
|
|
4
4
|
|
5
5
|
- eh relase -r or --repository plate_store or http path -u user -p password
|
6
6
|
- folder filter, default and customize
|
7
|
-
- extension filter, default and
|
7
|
+
- extension filter, default and customize
|
8
8
|
- it could take config settings from a local .ehconfig file
|
9
|
-
- would be nice to have a release all feature
|
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.5
|
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-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|