capistrano-git-plugins 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/capistrano-git-plugins.gemspec +1 -1
- data/lib/capistrano/git/plugins/deploy_reporter.rb +4 -2
- metadata +7 -7
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
@@ -1,7 +1,9 @@
|
|
1
1
|
require 'net/http'
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance(:must_exist).load do
|
4
|
-
if deploy_reporter_domain
|
4
|
+
reporter_domain = fetch(:deploy_reporter_domain) if exists?(:deploy_reporter_domain)
|
5
|
+
|
6
|
+
if reporter_domain
|
5
7
|
after 'deploy', 'deploy:report'
|
6
8
|
after 'deploy:migrations', 'deploy:report'
|
7
9
|
end
|
@@ -11,7 +13,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
11
13
|
task :report, :except => { :no_release => true } do
|
12
14
|
local_user = ENV['USER'] || ENV['USERNAME']
|
13
15
|
puts "\n\n### REPORT DEPLOYMENT: Reporting deployment to deployment tracking system\n\n"
|
14
|
-
url = URI.parse("#{
|
16
|
+
url = URI.parse("#{reporter_domain}/deployments")
|
15
17
|
req = Net::HTTP::Post.new(url.path)
|
16
18
|
req.set_form_data({ 'deployment[deployer]' => local_user, 'deployment[project_name]' => application }, ';')
|
17
19
|
res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }
|
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: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 10
|
10
|
+
version: 0.0.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Moran
|
@@ -18,7 +18,8 @@ cert_chain: []
|
|
18
18
|
date: 2012-02-07 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
21
|
+
type: :development
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
22
23
|
none: false
|
23
24
|
requirements:
|
24
25
|
- - ~>
|
@@ -29,10 +30,9 @@ dependencies:
|
|
29
30
|
- 6
|
30
31
|
- 4
|
31
32
|
version: 1.6.4
|
32
|
-
name: jeweler
|
33
33
|
prerelease: false
|
34
|
-
|
35
|
-
|
34
|
+
name: jeweler
|
35
|
+
version_requirements: *id001
|
36
36
|
description: Plugins to support capistrano-git deployments
|
37
37
|
email: ryan.moran@gmail.com
|
38
38
|
executables: []
|