eventhub-command 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b94b700a7149755c75916c9097bf04a4db08d45e
4
- data.tar.gz: d56162f1d9bcc74ecb9fdde877fe2a919a894f03
3
+ metadata.gz: 9ef13dd3d746245a0551304ac68c205a32459ee5
4
+ data.tar.gz: 2e79d5f91cd84e46a9efeaa8081132a21a1b6904
5
5
  SHA512:
6
- metadata.gz: bbfdf06949195be77da48ada4e31cfd0db4e7b41fa72232a76c2f6f6677e336869e7533d9a80e64dc93a5c77619df18bf8d71c9082648c8ddf3b75aa585cf9f9
7
- data.tar.gz: b318b341fca63f44400884094682b8d8b40c2b011d2d5de8636bd77400b283650d06e6ee36f9ed541280bb05862bd88d85c0214e390227b0ae190a9aefc7f9e0
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
- if inspector?
28
- cmd = inspector_command('stop', processor_name)
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
- if inspector?
56
- cmd = inspector_command('start', processor_name)
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
@@ -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')} #{'-i' if options['i']} #{copy_options(options, :stage, :branch, :tag, :verbose)} #{forward_arguments}"
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')} #{'-i' if options['i']} #{copy_options(options, :stage, :branch, :tag, :verbose)} #{forward_arguments}"
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
@@ -1,3 +1,3 @@
1
1
  module Eh
2
- VERSION = '0.6.4'
2
+ VERSION = '0.6.5'
3
3
  end
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 custmize
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
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-05-20 00:00:00.000000000 Z
12
+ date: 2016-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake