nginxtra 1.10.1.12 → 1.10.1.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d784fb7c6e974f8523d9ef4d1c02ccd6995068db
4
- data.tar.gz: dd8ea99c04482fe24fb8405e4c400e25e520e99e
3
+ metadata.gz: 59e3d6509dacb33baf0e1bc51cb916dde15ade0a
4
+ data.tar.gz: c0a32a24f41e650a0ddaba0b72d0ed5e34ea4045
5
5
  SHA512:
6
- metadata.gz: 4a65ae656e8d973b5d336ec765c36ce17812bf5ba9345d71c584db4dca551add2d337523c263800bc74e0c79bcbdecae7119140f83286468c762aa635b47d3e4
7
- data.tar.gz: e5d0d9944a72ec36922b7b28d862eaac9db7fb6401e3e9a7646faa7efe5d9e109de44056fac2e8af1d1bfbccb359b5fcea92f3d8415a575de7c75f7b8a8315e8
6
+ metadata.gz: 6a2cfb5cc51aced1a956a4d22165f6c73d279dd318fcc7dba8f0a0b3bcd04f364c1b94dda3c1b0182e35dc6489154e30b63eab0e27826df6edffa5da5a443d18
7
+ data.tar.gz: 726f5d2601271e6855156a1a8cab5926ba59ca73f9762f0990eccc65d47eb2849ab08a12c3751a6c5656c8bf7ea4f626aba181da7d0e61a6bbba9db6b7f24cda
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require "rubygems"
3
- gem "nginxtra", "= 1.10.1.12"
3
+ gem "nginxtra", "= 1.10.1.13"
4
4
  gem "thor", "~> 0.16"
5
5
  require "nginxtra"
6
6
  Nginxtra::CLI.start
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require "rubygems"
3
- gem "nginxtra", "= 1.10.1.12"
3
+ gem "nginxtra", "= 1.10.1.13"
4
4
  gem "thor", "~> 0.16"
5
5
  require "nginxtra"
6
6
  Nginxtra::Rails::CLI.start
@@ -49,9 +49,13 @@ module Nginxtra
49
49
  !Nginxtra::Config.nginx_running?
50
50
  end
51
51
 
52
- # Start nginx as a daemon.
52
+ # Start nginx as a daemon, unless --no-daemon is provided.
53
53
  def start_nginx
54
- daemon :start
54
+ if @thor.options["daemon"]
55
+ daemon :start
56
+ else
57
+ exec [Nginxtra::Config.nginx_executable, "nginx"]
58
+ end
55
59
  end
56
60
 
57
61
  # Update the last nginx start time.
@@ -86,7 +86,11 @@ module Nginxtra
86
86
  matches what is defined in nginxtra.conf.rb. If it is already running, this
87
87
  will do nothing, unless --force is passed. Note that compilation will NOT be
88
88
  forced with the --force option and should be invoked separately if it needs to
89
- be forced."
89
+ be forced. The --no-daemon option can be used if you want to run without
90
+ start-stop-daemon, though be aware this might break other nginxtra actions like
91
+ stop, restart, and reload. The process will be replaced with nginx when
92
+ --no-daemon is used."
93
+ method_option "daemon", type: :boolean, default: true, banner: "Start with start-stop-daemon", aliases: "-d"
90
94
  def start
91
95
  Nginxtra::Error.protect self do
92
96
  set_working_dir!
@@ -6,7 +6,7 @@ module Nginxtra
6
6
  end
7
7
 
8
8
  def to_s
9
- "1.10.1.12"
9
+ "1.10.1.13"
10
10
  end
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nginxtra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1.12
4
+ version: 1.10.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Virata-Stone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-02 00:00:00.000000000 Z
11
+ date: 2019-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -522,7 +522,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
522
522
  version: '0'
523
523
  requirements: []
524
524
  rubyforge_project:
525
- rubygems_version: 2.4.8
525
+ rubygems_version: 2.5.1
526
526
  signing_key:
527
527
  specification_version: 4
528
528
  summary: Wrapper of nginx for easy install and use.