unicorn-ctl 0.1.7 → 0.1.8
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/CHANGELOG.md +4 -0
- data/bin/unicornctl +8 -2
- data/lib/unicorn_ctl/version.rb +1 -1
- 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: bdf6d3aba450dd83804891c1e64758c73396c81c
|
|
4
|
+
data.tar.gz: 394f2e2cad4608a33d76a620e2aaeafe7f45ac70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e39d7e59cac27b7359a04c02af326e6f4e9a2bf41dad33da3e5f370e5b686ff65ded33e60c0631828eb04a700d3084b19af6b73bf66cf682817de060ceacb75a
|
|
7
|
+
data.tar.gz: ab1bf0cef4e2f4f4777cdd228d0c45a83a7248a6b7ce1fc60749d0a136c397fe09dbd73abe49135619d1ad37fc97e75d2496b8ccc7f77580dc29b461b0a6f6ff
|
data/CHANGELOG.md
CHANGED
|
@@ -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.
|
data/bin/unicornctl
CHANGED
|
@@ -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 &&
|
|
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
|
|
data/lib/unicorn_ctl/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2014-07-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|