vlad-unikorn 0.0.2
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.
- data/.gitignore +2 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +18 -0
- data/LICENSE +20 -0
- data/README.md +35 -0
- data/Rakefile +2 -0
- data/lib/vlad/unicorn.rb +21 -0
- data/lib/vlad/version.rb +5 -0
- data/vlad-unikorn.gemspec +22 -0
- metadata +76 -0
data/.gitignore
ADDED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm ruby-1.9.2-p136@vlad-unikorn
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2010 Vlad contributors, John Dewey (john@dewey.ws)
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# An opinionated Unicorn for Vlad
|
2
|
+
|
3
|
+
This plugin simply executes the tasks 'app:start' and 'app:stop' by 'run_rake'.
|
4
|
+
All of which are your responsibility to implement.
|
5
|
+
|
6
|
+
## Description
|
7
|
+
|
8
|
+
A [Vlad](http://rubyhitsquad.com/Vlad_the_Deployer.html) plugin for controlling [Unicorn](http://unicorn.bogomips.org/).
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
### Bundler
|
13
|
+
|
14
|
+
Add the following to your Gemfile.
|
15
|
+
|
16
|
+
gem "vlad-unicorn"
|
17
|
+
|
18
|
+
## Usage
|
19
|
+
|
20
|
+
In your rake file do the following:
|
21
|
+
|
22
|
+
begin
|
23
|
+
require "vlad"
|
24
|
+
Vlad.load :app => :unicorn
|
25
|
+
rescue LoadError
|
26
|
+
puts $!
|
27
|
+
end
|
28
|
+
|
29
|
+
## Credits
|
30
|
+
|
31
|
+
John Barnette's [vlad-git](https://github.com/jbarnette/vlad-git), for which this was based on.
|
32
|
+
|
33
|
+
## Copyright
|
34
|
+
|
35
|
+
Copyright 2011 Vlad contributors, John Dewey (john@dewey.ws)
|
data/Rakefile
ADDED
data/lib/vlad/unicorn.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
##
|
2
|
+
# Recipe to start/stop Unicorn.
|
3
|
+
|
4
|
+
require "vlad"
|
5
|
+
require "hoe"
|
6
|
+
|
7
|
+
class Vlad::Unicorn
|
8
|
+
%w(stop_app start_app).each { |task| Rake.clear_tasks "vlad:#{task}" }
|
9
|
+
|
10
|
+
namespace :vlad do
|
11
|
+
desc "Start the daemon."
|
12
|
+
remote_task :start_app, :roles => :app do
|
13
|
+
run_rake "app:start"
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Stop the daemon."
|
17
|
+
remote_task :stop_app, :roles => :app do
|
18
|
+
run_rake "app:stop"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/vlad/version.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "vlad/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "vlad-unikorn"
|
7
|
+
s.version = Vlad::Unicorn::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
sauthors = ["retr0h"]
|
10
|
+
s.email = ["john@dewey.ws"]
|
11
|
+
s.homepage = "http://github.com/retr0h/vlad-unicorn"
|
12
|
+
s.summary = %Q{A Vlad plugin for controlling Unicorn.}
|
13
|
+
|
14
|
+
s.rubyforge_project = "vlad-unikorn"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
s.add_dependency "hoe", "~> 2.9.1"
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vlad-unikorn
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.2
|
6
|
+
platform: ruby
|
7
|
+
authors: []
|
8
|
+
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-02-08 00:00:00 -08:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: hoe
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 2.9.1
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- john@dewey.ws
|
30
|
+
executables: []
|
31
|
+
|
32
|
+
extensions: []
|
33
|
+
|
34
|
+
extra_rdoc_files: []
|
35
|
+
|
36
|
+
files:
|
37
|
+
- .gitignore
|
38
|
+
- .rvmrc
|
39
|
+
- Gemfile
|
40
|
+
- Gemfile.lock
|
41
|
+
- LICENSE
|
42
|
+
- README.md
|
43
|
+
- Rakefile
|
44
|
+
- lib/vlad/unicorn.rb
|
45
|
+
- lib/vlad/version.rb
|
46
|
+
- vlad-unikorn.gemspec
|
47
|
+
has_rdoc: true
|
48
|
+
homepage: http://github.com/retr0h/vlad-unicorn
|
49
|
+
licenses: []
|
50
|
+
|
51
|
+
post_install_message:
|
52
|
+
rdoc_options: []
|
53
|
+
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: "0"
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
requirements: []
|
69
|
+
|
70
|
+
rubyforge_project: vlad-unikorn
|
71
|
+
rubygems_version: 1.5.0
|
72
|
+
signing_key:
|
73
|
+
specification_version: 3
|
74
|
+
summary: A Vlad plugin for controlling Unicorn.
|
75
|
+
test_files: []
|
76
|
+
|