escobar 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/escobar/client.rb +0 -2
- data/lib/escobar/heroku/pipeline.rb +26 -23
- data/lib/escobar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b458f216437aed93fc45c6e917be74521724a199
|
4
|
+
data.tar.gz: f5da689ed96df3321e5951d3a21ba6aaa208e165
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d84e7dcd1c87ec8b196f7f879b955cea73ecf09e0539c07cf9651cb68eed60b755f332c2b23338a641b682cd277bee11b89263820c81bce67353f528a2a7e4a1
|
7
|
+
data.tar.gz: 39ada2950b69befb7105d443f0a2a9c23dfa0b1f4c3e98741a2a95549302981df456c1122d3361afc01222d38bf0e6eb946088eee0a7750921c8983dc782524d
|
data/lib/escobar/client.rb
CHANGED
@@ -66,31 +66,34 @@ module Escobar
|
|
66
66
|
|
67
67
|
archive_link = deployment.archive_link
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
build = client.heroku.post("/apps/#{app.name}/builds", body)
|
83
|
-
if build["id"]
|
84
|
-
status_payload = {
|
85
|
-
target_url: "#{app.app.dashboard_url}/activity/builds/#{build['id']}",
|
86
|
-
description: "Deploying from slash-heroku"
|
69
|
+
app = environments[environment] && environments[environment].last
|
70
|
+
if app
|
71
|
+
payload = self.to_hash
|
72
|
+
payload[:name] = name
|
73
|
+
payload[:provider] = "slash-heroku"
|
74
|
+
|
75
|
+
github_deployment = deployment.create(payload)
|
76
|
+
body = {
|
77
|
+
source_blob: {
|
78
|
+
url: archive_link,
|
79
|
+
version: github_deployment.sha[0..7],
|
80
|
+
version_description: "#{deployment.repo}:#{github_deployment.sha}"
|
81
|
+
}
|
87
82
|
}
|
88
83
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
84
|
+
build = client.heroku.post("/apps/#{app.name}/builds", body)
|
85
|
+
if build["id"]
|
86
|
+
status_payload = {
|
87
|
+
target_url: "#{app.app.dashboard_url}/activity/builds/#{build['id']}",
|
88
|
+
description: "Deploying from slash-heroku"
|
89
|
+
}
|
90
|
+
|
91
|
+
deployment.create_status(github_deployment.url, "pending", status_payload)
|
92
|
+
{
|
93
|
+
app_id: app.name, build_id: build["id"],
|
94
|
+
deployment_url: github_deployment.url
|
95
|
+
}
|
96
|
+
end
|
94
97
|
end
|
95
98
|
end
|
96
99
|
|
data/lib/escobar/version.rb
CHANGED