capistrano-git-plugins 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "capistrano-git-plugins"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ryan Moran"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2012-02-06"
|
13
13
|
s.description = "Plugins to support capistrano-git deployments"
|
14
14
|
s.email = "ryan.moran@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.homepage = "https://github.com/RevolutionPrep/capistrano-git-plugins"
|
39
39
|
s.licenses = ["MIT"]
|
40
40
|
s.require_paths = ["lib"]
|
41
|
-
s.rubygems_version = "1.8.
|
41
|
+
s.rubygems_version = "1.8.10"
|
42
42
|
s.summary = "Plugins to support capistrano-git deployments"
|
43
43
|
|
44
44
|
if s.respond_to? :specification_version then
|
@@ -1,15 +1,17 @@
|
|
1
1
|
require 'net/http'
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance(:must_exist).load do
|
4
|
-
|
5
|
-
|
4
|
+
if configuration[:deploy_reporter_domain]
|
5
|
+
after 'deploy', 'deploy:report'
|
6
|
+
after 'deploy:migrations', 'deploy:report'
|
7
|
+
end
|
6
8
|
|
7
9
|
namespace :deploy do
|
8
10
|
desc "Report that the deployment was made"
|
9
11
|
task :report, :except => { :no_release => true } do
|
10
12
|
local_user = ENV['USER'] || ENV['USERNAME']
|
11
13
|
puts "\n\n### REPORT DEPLOYMENT: Reporting deployment to deployment tracking system\n\n"
|
12
|
-
url = URI.parse(
|
14
|
+
url = URI.parse("#{configuration[:deploy_reporter_domain]}/deployments")
|
13
15
|
req = Net::HTTP::Post.new(url.path)
|
14
16
|
req.set_form_data({ 'deployment[deployer]' => local_user, 'deployment[project_name]' => application }, ';')
|
15
17
|
res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }
|
@@ -4,8 +4,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
4
4
|
namespace :resque_workers do
|
5
5
|
desc 'restart resque workers'
|
6
6
|
task :restart, :roles=> :god do
|
7
|
-
puts "\n\n### RESTART RESQUE WORKERS!:
|
8
|
-
run "sudo #{
|
7
|
+
puts "\n\n### RESTART RESQUE WORKERS!: Telling god to restart our resque workers.\n\n"
|
8
|
+
run "sudo #{configuration[:ruby_bin_dir]}/ruby #{configuration[:ruby_bin_dir]}god restart #{config[:application]-resque}; exit 0"
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-git-plugins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Moran
|
@@ -15,11 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-02-06 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
22
|
none: false
|
24
23
|
requirements:
|
25
24
|
- - ~>
|
@@ -30,9 +29,10 @@ dependencies:
|
|
30
29
|
- 6
|
31
30
|
- 4
|
32
31
|
version: 1.6.4
|
33
|
-
version_requirements: *id001
|
34
32
|
name: jeweler
|
35
33
|
prerelease: false
|
34
|
+
type: :development
|
35
|
+
requirement: *id001
|
36
36
|
description: Plugins to support capistrano-git deployments
|
37
37
|
email: ryan.moran@gmail.com
|
38
38
|
executables: []
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
requirements: []
|
90
90
|
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 1.8.
|
92
|
+
rubygems_version: 1.8.10
|
93
93
|
signing_key:
|
94
94
|
specification_version: 3
|
95
95
|
summary: Plugins to support capistrano-git deployments
|