This repository was archived by the owner on Nov 1, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathdeployment.rb
More file actions
50 lines (48 loc) · 1.97 KB
/
deployment.rb
File metadata and controls
50 lines (48 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require_relative 'user'
module GitHub
module Resources
module Responses
DEPLOYMENT ||= {
"url" => "https://api.github.com/repos/octocat/example/deployments/1",
"id" => 1,
"sha" => "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
"ref" => "master",
"task" => "deploy",
"payload" => {:task => 'deploy:migrate'},
"environment" => "production",
"description" => "Deploy request from hubot",
"creator" => USER,
"created_at" => "2012-07-20T01:19:13Z",
"updated_at" => "2012-07-20T01:19:13Z",
"statuses_url" => "https://api.github.com/repos/octocat/example/deployments/1/statuses",
"repository_url" => "https://api.github.com/repos/octocat/example"
}
DEPLOYMENT_STATUS ||= {
"url" => "https://api.github.com/repos/octocat/example/deployments/42/statuses/1",
"id" => 1,
"state" => "success",
"creator" => USER,
"description" => "Deployment finished successfully.",
"target_url" => "https://example.com/deployment/42/output",
"created_at" => "2012-07-20T01:19:13Z",
"updated_at" => "2012-07-20T01:19:13Z",
"deployment_url" => "https://api.github.com/repos/octocat/example/deployments/42",
"repository_url" => "https://api.github.com/repos/octocat/example",
"deployment" => {
"id" => 42,
"ref" => "master",
"sha" => "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
"url" => "https://api.github.com/repos/octocat/example/deployments/42",
"task" => "deploy",
"creator" => USER,
"environment" => "production",
"payload" => {:task => 'deploy:migrate'},
"created_at" => "2012-07-20T01:19:13Z",
"updated_at" => "2012-07-20T01:19:13Z",
"description" => "Deploy request from hubot",
"statuses_url" => "https://api.github.com/repos/octocat/example/deployments/42/statuses"
}
}
end
end
end