capistrano-isitdeployed 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/capistrano/isitdeployed/version.rb +1 -1
- data/lib/capistrano/isitdeployed.rb +4 -3
- metadata +25 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA512:
|
3
|
-
metadata.gz: f80102f4c89acb7c65049c08c669f7c310e3a0d6c5dd5b9bcecb265aeac36bc7bef3e9e2565b17a98f3b0ba7124f4b1de6da590932b1be3bf80bf1a8e7df2ed9
|
4
|
-
data.tar.gz: c37cca59740726022bdb3f07f298bb0de3e9a29f4a1156823b0578f1488510bb324dcb3ba853aa24b4f74c422d69dffa2437b9ad7dd29051684c90b6f7f6e8a2
|
5
2
|
SHA1:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6560816aa818b6abb851dbde4a8166c8e8fcb8ee
|
4
|
+
data.tar.gz: 412a050e7cdef6ad0df03db9d6957b29ed850df8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9e0d29237d28e77d37afe0b88f62570974a1941d53e8144ace561c81fdc8d38213ccafb5bbd72302a95dff0ea38dd59dc32e1724ba3be787aeaf6e1490a9a48f
|
7
|
+
data.tar.gz: e932f3b9f1fc7657cfedac705d1ad15b15fdeef7c786edd5ea4288513dd2433a47cae1860d17358835bf6732ca67dfcfcc297fa97cf0a6f372a2ea57e51aab3a
|
@@ -1,8 +1,9 @@
|
|
1
1
|
require 'capistrano/isitdeployed/version'
|
2
2
|
require 'capistrano/isitdeployed/config'
|
3
3
|
require 'capistrano/isitdeployed/debug'
|
4
|
-
require '
|
4
|
+
require 'capistrano/logger'
|
5
5
|
require 'rest_client'
|
6
|
+
require 'json'
|
6
7
|
|
7
8
|
module Capistrano
|
8
9
|
module Isitdeployed
|
@@ -49,7 +50,7 @@ module Capistrano
|
|
49
50
|
if File.exists?(CONFIG_DEST)
|
50
51
|
config = Capistrano::Isitdeployed.load_user_config
|
51
52
|
started = Capistrano::Isitdeployed.timestamp
|
52
|
-
RestClient.post(ENDPOINT + "/p/#{config['project_id']}/d",
|
53
|
+
RestClient.post(ENDPOINT + "/p/#{config['project_id']}/d", JSON.generate({ :status => 1, :platform => "#{stage}", :release => "#{release_name}", :started => started, :token => config['api_secret'] }), :content_type => :json, :accept => :json, :timeout => 5, :open_timeout => 5){ |response, request, result| response
|
53
54
|
case response.code
|
54
55
|
when 201
|
55
56
|
logger.trace "IsItDeployed > New deploy created for #{application} to #{stage} with version: #{release_name}"
|
@@ -92,7 +93,7 @@ module Capistrano
|
|
92
93
|
config = Capistrano::Isitdeployed.load_user_config
|
93
94
|
stopped = Capistrano::Isitdeployed.timestamp
|
94
95
|
duration = stopped.to_i - isitdeployed_started.to_i
|
95
|
-
RestClient.put(ENDPOINT + "/p/#{config['project_id']}/d/#{isitdeployed_did}",
|
96
|
+
RestClient.put(ENDPOINT + "/p/#{config['project_id']}/d/#{isitdeployed_did}", JSON.generate({ :status => isitdeployed_status, :stopped => stopped, :duration => duration, :token => config['api_secret'] }), :content_type => :json, :accept => :json, :timeout => 5, :open_timeout => 5){ |response, request, result| response
|
96
97
|
case response.code
|
97
98
|
when 204
|
98
99
|
logger.trace "IsItDeployed > Deploy ##{isitdeployed_did} has been updated for #{application} to #{stage}."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-isitdeployed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas VIAL
|
@@ -12,15 +12,35 @@ cert_chain: []
|
|
12
12
|
date: 2013-04-02 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: capistrano
|
16
16
|
prerelease: false
|
17
17
|
requirement: &id001 !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.13.5
|
22
22
|
type: :runtime
|
23
23
|
version_requirements: *id001
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: rest-client
|
26
|
+
prerelease: false
|
27
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 1.6.7
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id002
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: json
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 1.7.7
|
42
|
+
type: :runtime
|
43
|
+
version_requirements: *id003
|
24
44
|
description: This is a pre-alpha build for test purpose.
|
25
45
|
email:
|
26
46
|
- rubygems@ifusio.com
|
@@ -52,13 +72,13 @@ require_paths:
|
|
52
72
|
- lib
|
53
73
|
required_ruby_version: !ruby/object:Gem::Requirement
|
54
74
|
requirements:
|
55
|
-
- &
|
75
|
+
- &id004
|
56
76
|
- ">="
|
57
77
|
- !ruby/object:Gem::Version
|
58
78
|
version: "0"
|
59
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
80
|
requirements:
|
61
|
-
- *
|
81
|
+
- *id004
|
62
82
|
requirements: []
|
63
83
|
|
64
84
|
rubyforge_project:
|