vlad-nginx 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/LICENSE +19 -0
- data/Rakefile +16 -0
- data/VERSION +1 -0
- data/lib/vlad/nginx.rb +38 -0
- data/vlad-nginx.gemspec +43 -0
- metadata +81 -0
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2010 Kim Burgestrand <http://github.com/Burgestrand>
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "vlad-nginx"
|
8
|
+
gem.summary = %Q{NGiNX recipe for Vlad the Deployer}
|
9
|
+
gem.author = "Kim Burgestrand"
|
10
|
+
gem.email = "kim@burgestrand.se"
|
11
|
+
gem.homepage = "http://github.com/Burgestrand/vlad-nginx"
|
12
|
+
end
|
13
|
+
Jeweler::GemcutterTasks.new
|
14
|
+
rescue LoadError
|
15
|
+
puts "Jeweler (or a dependency) unavailable: gem install jeweler"
|
16
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.0
|
data/lib/vlad/nginx.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Vlad the Deployer recipe for NGiNX.
|
2
|
+
#
|
3
|
+
# Author: Kim Burgestrand <http://github.com/Burgestrand>
|
4
|
+
# Date: 24th September 2010
|
5
|
+
# License: X11 License (MIT License, same as Vlad — details in LICENSE)
|
6
|
+
# URL: http://github.com/Burgestrand/vlad-nginx
|
7
|
+
require 'vlad'
|
8
|
+
|
9
|
+
namespace :vlad do
|
10
|
+
set :web_command, "nginx"
|
11
|
+
|
12
|
+
namespace :web do
|
13
|
+
desc "Gracefully stop the web servers."
|
14
|
+
remote_task :quit, :roles => :web do
|
15
|
+
run "#{web_command} -s quit"
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Instantly kill the web servers."
|
19
|
+
remote_task :kill, :roles => :web do
|
20
|
+
run "#{web_command} -s stop"
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "Reload web server configuration."
|
24
|
+
remote_task :reload, :roles => :web do
|
25
|
+
run "#{web_command} -s reload"
|
26
|
+
end
|
27
|
+
|
28
|
+
desc "Reopen web server logs."
|
29
|
+
remote_task :reopen, :roles => :web do
|
30
|
+
run "#{web_command} -s reopen"
|
31
|
+
end
|
32
|
+
|
33
|
+
desc "Start the web servers."
|
34
|
+
remote_task :start, :roles => :web do
|
35
|
+
run web_command
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/vlad-nginx.gemspec
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{vlad-nginx}
|
8
|
+
s.version = "1.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Kim Burgestrand"]
|
12
|
+
s.date = %q{2010-10-17}
|
13
|
+
s.email = %q{kim@burgestrand.se}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"LICENSE"
|
16
|
+
]
|
17
|
+
s.files = [
|
18
|
+
"Gemfile",
|
19
|
+
"LICENSE",
|
20
|
+
"Rakefile",
|
21
|
+
"VERSION",
|
22
|
+
"lib/vlad/nginx.rb",
|
23
|
+
"vlad-nginx.gemspec"
|
24
|
+
]
|
25
|
+
s.homepage = %q{http://github.com/Burgestrand/vlad-nginx}
|
26
|
+
s.require_paths = ["lib"]
|
27
|
+
s.rubygems_version = %q{1.3.7}
|
28
|
+
s.summary = %q{NGiNX recipe for Vlad the Deployer}
|
29
|
+
|
30
|
+
if s.respond_to? :specification_version then
|
31
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
32
|
+
s.specification_version = 3
|
33
|
+
|
34
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
35
|
+
s.add_runtime_dependency(%q<vlad>, ["~> 2"])
|
36
|
+
else
|
37
|
+
s.add_dependency(%q<vlad>, ["~> 2"])
|
38
|
+
end
|
39
|
+
else
|
40
|
+
s.add_dependency(%q<vlad>, ["~> 2"])
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vlad-nginx
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
version: 1.0.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Kim Burgestrand
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-10-17 00:00:00 +02:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: vlad
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
version: "2"
|
30
|
+
type: :runtime
|
31
|
+
prerelease: false
|
32
|
+
version_requirements: *id001
|
33
|
+
description:
|
34
|
+
email: kim@burgestrand.se
|
35
|
+
executables: []
|
36
|
+
|
37
|
+
extensions: []
|
38
|
+
|
39
|
+
extra_rdoc_files:
|
40
|
+
- LICENSE
|
41
|
+
files:
|
42
|
+
- Gemfile
|
43
|
+
- LICENSE
|
44
|
+
- Rakefile
|
45
|
+
- VERSION
|
46
|
+
- lib/vlad/nginx.rb
|
47
|
+
- vlad-nginx.gemspec
|
48
|
+
has_rdoc: true
|
49
|
+
homepage: http://github.com/Burgestrand/vlad-nginx
|
50
|
+
licenses: []
|
51
|
+
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options: []
|
54
|
+
|
55
|
+
require_paths:
|
56
|
+
- lib
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
version: "0"
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
segments:
|
71
|
+
- 0
|
72
|
+
version: "0"
|
73
|
+
requirements: []
|
74
|
+
|
75
|
+
rubyforge_project:
|
76
|
+
rubygems_version: 1.3.7
|
77
|
+
signing_key:
|
78
|
+
specification_version: 3
|
79
|
+
summary: NGiNX recipe for Vlad the Deployer
|
80
|
+
test_files: []
|
81
|
+
|