unicorn-ctl 0.1.7 → 0.1.8

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: 86dce2e052a707a74afa9857c12f068f54aad33a
4
- data.tar.gz: a050a26a43d7cee0f137e56153e4a541cf42d84f
3
+ metadata.gz: bdf6d3aba450dd83804891c1e64758c73396c81c
4
+ data.tar.gz: 394f2e2cad4608a33d76a620e2aaeafe7f45ac70
5
5
  SHA512:
6
- metadata.gz: a5735eb7cbade6cc33041d9db908f222fbdfa450452e0fd27196f14c46dc20136967d3b99db83750fb7b7ca429130d62fa3741d5edea752dbdb0f3159096762d
7
- data.tar.gz: 5e4db3b25dbd53105a4a762a5c1b8cb05004f9a3ed844d3dd2f723b5dd124b9197a82e4c76f2b7b3645f812bb8c2124cbb47b2ebdc0033616dd6cdff82fdbc2a
6
+ metadata.gz: e39d7e59cac27b7359a04c02af326e6f4e9a2bf41dad33da3e5f370e5b686ff65ded33e60c0631828eb04a700d3084b19af6b73bf66cf682817de060ceacb75a
7
+ data.tar.gz: ab1bf0cef4e2f4f4777cdd228d0c45a83a7248a6b7ce1fc60749d0a136c397fe09dbd73abe49135619d1ad37fc97e75d2496b8ccc7f77580dc29b461b0a6f6ff
@@ -1,5 +1,9 @@
1
1
  ## UnicornCtl Changelog
2
2
 
3
+ ### 0.1.8 / 2014-08-29
4
+
5
+ * Add support for `--bundle-command` option that allows replacing bundler binary with a different command.
6
+
3
7
  ### 0.1.7 / 2014-06-19
4
8
 
5
9
  * Add version module and `-v` key to the script allowing users to see what version is installed.
@@ -219,7 +219,7 @@ def start_application!(options)
219
219
  end
220
220
 
221
221
  # Compose unicorn startup command
222
- command = "cd #{escape options[:app_dir]}/current && bundle exec #{options[:unicorn_bin]} " <<
222
+ command = "cd #{escape options[:app_dir]}/current && #{options[:bundle_command]} exec #{options[:unicorn_bin]} " <<
223
223
  "--env #{escape options[:env]} --daemonize --config-file #{escape unicorn_config} "
224
224
  "#{escape rackup_config}"
225
225
 
@@ -485,6 +485,7 @@ def show_help(error = nil)
485
485
  puts ' --health-check-timeout=sec | -T sec Individual health check timeout (default: 5 sec)'
486
486
  puts ' --start-wait=sec | -w sec New master startup wait (default: 5 sec, use 0 to disable)'
487
487
  puts ' --timeout=sec | -t sec Operation (start/stop/etc) timeout (default: 30 sec)'
488
+ puts ' --bundle-command=cmd | -b cmd Command that executes bundler (default: bundle)'
488
489
  puts ' --unicorn-config=file | -c file Unicorn config file to use, absolute or relative path (default: shared/unicorn.rb)'
489
490
  puts ' --rackup-config=file | -r file Rackup config file to use, absolute or relative path (default: current/config.ru)'
490
491
  puts ' --pid-file=file | -p file PID-file unicorn is configured to use (default: shared/pids/unicorn.pid)'
@@ -506,6 +507,7 @@ opts = GetoptLong.new(
506
507
  [ '--health-check-timeout', '-T', GetoptLong::REQUIRED_ARGUMENT ],
507
508
  [ '--start-wait', '-w', GetoptLong::REQUIRED_ARGUMENT ],
508
509
  [ '--timeout', '-t', GetoptLong::REQUIRED_ARGUMENT ],
510
+ [ '--bundle-command', '-b', GetoptLong::REQUIRED_ARGUMENT ],
509
511
  [ '--unicorn-config', '-c', GetoptLong::REQUIRED_ARGUMENT ],
510
512
  [ '--rackup-config', '-r', GetoptLong::REQUIRED_ARGUMENT ],
511
513
  [ '--pid-file', '-p', GetoptLong::REQUIRED_ARGUMENT ],
@@ -528,7 +530,8 @@ options = {
528
530
  :pid_file => nil,
529
531
  :rackup_config => nil,
530
532
  :unicorn_config => nil,
531
- :watch_proctitle => false
533
+ :watch_proctitle => false,
534
+ :bundle_command => 'bundle'
532
535
  }
533
536
 
534
537
  # Process options
@@ -555,6 +558,9 @@ opts.each do |opt, arg|
555
558
  when "--start-wait"
556
559
  options[:start_wait] = arg.to_i
557
560
 
561
+ when "--bundle-command"
562
+ options[:bundle_command] = arg.strip
563
+
558
564
  when "--unicorn-config"
559
565
  options[:unicorn_config] = arg.strip
560
566
 
@@ -2,7 +2,7 @@ module UnicornCtl
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 7
5
+ PATCH = 8
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [ MAJOR, MINOR, PATCH, BUILD ].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn-ctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleksiy Kovyrin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-19 00:00:00.000000000 Z
11
+ date: 2014-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty