capistrano-ext-rvm-unicorn 0.0.1

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/CHANGELOG.rdoc ADDED
@@ -0,0 +1,12 @@
1
+ == (unreleased)
2
+
3
+ * add description in README
4
+ * add MIT license
5
+
6
+ == 0.0.1 (November 14, 2011)
7
+
8
+ * add 'cap deploy:start'
9
+ * add 'cap deploy:stop'
10
+ * add 'cap deploy:graceful_stop'
11
+ * add 'cap deploy:reload'
12
+ * add 'cap deploy:restart'
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 DoubleDrones
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/Manifest ADDED
@@ -0,0 +1,7 @@
1
+ CHANGELOG.rdoc
2
+ MIT-LICENSE
3
+ Manifest
4
+ README
5
+ Rakefile
6
+ lib/capistrano/ext/rvm-unicorn.rb
7
+ lib/capistrano/ext/version.rb
data/README ADDED
@@ -0,0 +1 @@
1
+ Capistrano recipes to support unicorn server installed on RVM.
data/Rakefile ADDED
@@ -0,0 +1,25 @@
1
+ begin
2
+ require 'echoe'
3
+ rescue LoadError
4
+ abort "You'll need to have `echoe' installed to use capistrano-ext-rvm-unicorn's Rakefile"
5
+ end
6
+
7
+ require "./lib/capistrano/ext/version"
8
+
9
+ version = Capistrano::Ext::RvmUnicorn::Version::STRING.dup
10
+ if ENV['SNAPSHOT'].to_i == 1
11
+ version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
12
+ end
13
+
14
+ Echoe.new('capistrano-ext-rvm-unicorn', version) do |p|
15
+ p.changelog = "CHANGELOG.rdoc"
16
+
17
+ p.author = "Marcin Nowicki"
18
+ p.email = "pr0d1r2@gmail.com"
19
+ p.summary = "Capistrano recipes to support unicorn server installed on RVM"
20
+ p.url = "https://github.com/doubledrones/capistrano-ext-rvm-unicorn"
21
+
22
+ p.need_zip = true
23
+
24
+ p.dependencies = ["capistrano >=1.0.0", "capistrano-ext-rvm >=0.0.2"]
25
+ end
@@ -0,0 +1,35 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{capistrano-ext-rvm-unicorn}
5
+ s.version = "0.0.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = [%q{Marcin Nowicki}]
9
+ s.date = %q{2011-11-14}
10
+ s.description = %q{Capistrano recipes to support unicorn server installed on RVM}
11
+ s.email = %q{pr0d1r2@gmail.com}
12
+ s.extra_rdoc_files = [%q{CHANGELOG.rdoc}, %q{README}, %q{lib/capistrano/ext/rvm-unicorn.rb}, %q{lib/capistrano/ext/version.rb}]
13
+ s.files = [%q{CHANGELOG.rdoc}, %q{MIT-LICENSE}, %q{Manifest}, %q{README}, %q{Rakefile}, %q{lib/capistrano/ext/rvm-unicorn.rb}, %q{lib/capistrano/ext/version.rb}, %q{capistrano-ext-rvm-unicorn.gemspec}]
14
+ s.homepage = %q{https://github.com/doubledrones/capistrano-ext-rvm-unicorn}
15
+ s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Capistrano-ext-rvm-unicorn}, %q{--main}, %q{README}]
16
+ s.require_paths = [%q{lib}]
17
+ s.rubyforge_project = %q{capistrano-ext-rvm-unicorn}
18
+ s.rubygems_version = %q{1.8.6}
19
+ s.summary = %q{Capistrano recipes to support unicorn server installed on RVM}
20
+
21
+ if s.respond_to? :specification_version then
22
+ s.specification_version = 3
23
+
24
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
25
+ s.add_runtime_dependency(%q<capistrano>, [">= 1.0.0"])
26
+ s.add_runtime_dependency(%q<capistrano-ext-rvm>, [">= 0.0.2"])
27
+ else
28
+ s.add_dependency(%q<capistrano>, [">= 1.0.0"])
29
+ s.add_dependency(%q<capistrano-ext-rvm>, [">= 0.0.2"])
30
+ end
31
+ else
32
+ s.add_dependency(%q<capistrano>, [">= 1.0.0"])
33
+ s.add_dependency(%q<capistrano-ext-rvm>, [">= 0.0.2"])
34
+ end
35
+ end
@@ -0,0 +1,33 @@
1
+ require 'capistrano/ext/rvm'
2
+
3
+ Capistrano::Configuration.instance.load do
4
+
5
+ namespace :deploy do
6
+ desc "Start unicorn server"
7
+ task :start, :roles => :app, :except => { :no_release => true } do
8
+ run "cd #{current_path} && rvm '#{rvm_ruby_string}' && unicorn_rails -c #{unicorn_config} -E #{rails_env} -D"
9
+ end
10
+
11
+ desc "Stop unicorn server"
12
+ task :stop, :roles => :app, :except => { :no_release => true } do
13
+ run "kill -9 `cat #{unicorn_pid}`" unless ENV['NOKILL']
14
+ end
15
+
16
+ desc "Stop unicorn server gracefuly"
17
+ task :graceful_stop, :roles => :app, :except => { :no_release => true } do
18
+ run "kill -s QUIT `cat #{unicorn_pid}`"
19
+ end
20
+
21
+ desc "Reload unicorn server via sending USR2 signal"
22
+ task :reload, :roles => :app, :except => { :no_release => true } do
23
+ run "kill -s USR2 `cat #{unicorn_pid}`"
24
+ end
25
+
26
+ desc "Restart unicorn server"
27
+ task :restart, :roles => :app, :except => { :no_release => true } do
28
+ stop
29
+ start
30
+ end
31
+ end
32
+
33
+ end
@@ -0,0 +1,13 @@
1
+ module Capistrano
2
+ module Ext
3
+ module RvmUnicorn
4
+ module Version #:nodoc:
5
+ MAJOR = 0
6
+ MINOR = 0
7
+ TINY = 1
8
+
9
+ STRING = [MAJOR, MINOR, TINY].join(".")
10
+ end
11
+ end
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-ext-rvm-unicorn
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Marcin Nowicki
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-11-14 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: capistrano
16
+ requirement: &70117662570380 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70117662570380
25
+ - !ruby/object:Gem::Dependency
26
+ name: capistrano-ext-rvm
27
+ requirement: &70117662569540 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 0.0.2
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70117662569540
36
+ description: Capistrano recipes to support unicorn server installed on RVM
37
+ email: pr0d1r2@gmail.com
38
+ executables: []
39
+ extensions: []
40
+ extra_rdoc_files:
41
+ - CHANGELOG.rdoc
42
+ - README
43
+ - lib/capistrano/ext/rvm-unicorn.rb
44
+ - lib/capistrano/ext/version.rb
45
+ files:
46
+ - CHANGELOG.rdoc
47
+ - MIT-LICENSE
48
+ - Manifest
49
+ - README
50
+ - Rakefile
51
+ - lib/capistrano/ext/rvm-unicorn.rb
52
+ - lib/capistrano/ext/version.rb
53
+ - capistrano-ext-rvm-unicorn.gemspec
54
+ homepage: https://github.com/doubledrones/capistrano-ext-rvm-unicorn
55
+ licenses: []
56
+ post_install_message:
57
+ rdoc_options:
58
+ - --line-numbers
59
+ - --inline-source
60
+ - --title
61
+ - Capistrano-ext-rvm-unicorn
62
+ - --main
63
+ - README
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '1.2'
78
+ requirements: []
79
+ rubyforge_project: capistrano-ext-rvm-unicorn
80
+ rubygems_version: 1.8.6
81
+ signing_key:
82
+ specification_version: 3
83
+ summary: Capistrano recipes to support unicorn server installed on RVM
84
+ test_files: []