capistrano-git-plugins 0.0.8 → 0.0.9
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 +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'net/http'
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance(:must_exist).load do
|
4
|
-
if
|
4
|
+
if deploy_reporter_domain
|
5
5
|
after 'deploy', 'deploy:report'
|
6
6
|
after 'deploy:migrations', 'deploy:report'
|
7
7
|
end
|
@@ -11,7 +11,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
11
11
|
task :report, :except => { :no_release => true } do
|
12
12
|
local_user = ENV['USER'] || ENV['USERNAME']
|
13
13
|
puts "\n\n### REPORT DEPLOYMENT: Reporting deployment to deployment tracking system\n\n"
|
14
|
-
url = URI.parse("#{
|
14
|
+
url = URI.parse("#{deploy_reporter_domain}/deployments")
|
15
15
|
req = Net::HTTP::Post.new(url.path)
|
16
16
|
req.set_form_data({ 'deployment[deployer]' => local_user, 'deployment[project_name]' => application }, ';')
|
17
17
|
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: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 9
|
10
|
+
version: 0.0.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Moran
|