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 ADDED
@@ -0,0 +1,2 @@
1
+ pkg/*
2
+ .bundle
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm ruby-1.9.2-p136@vlad-unikorn
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in ..gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,18 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ vlad-unikorn (0.0.1)
5
+ hoe (~> 2.9.1)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ hoe (2.9.1)
11
+ rake (>= 0.8.7)
12
+ rake (0.8.7)
13
+
14
+ PLATFORMS
15
+ ruby
16
+
17
+ DEPENDENCIES
18
+ vlad-unikorn!
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
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -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
@@ -0,0 +1,5 @@
1
+ module Vlad
2
+ class Unicorn
3
+ VERSION = "0.0.2"
4
+ end
5
+ end
@@ -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
+