capistrano-notify-hubot 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b70037cfb00a5396ea44e4090ccb623725a576ca
4
+ data.tar.gz: ca4e98212b3c5b5efe15118ab43875b4011f5ce2
5
+ SHA512:
6
+ metadata.gz: ac76a0cc4eb3c963824d8533bb6d2f4209b52f3661421eb3d0f3c42edc6ad849415f5a0a7c32baffc6a9c601e90e706cacf79105780662433aafbad0e61df910
7
+ data.tar.gz: cebf4ce0c1f28ec0fa2a5709659834237c09bcdb8483c7d61c569a37827df082832514800adc5818281697c97fb1380c6131fd88187ce0d89baa2751c2c421a2
@@ -16,13 +16,13 @@ def message_hubot
16
16
  begin
17
17
  response = http.request(request)
18
18
  rescue Timeout::Error
19
- error "Timed out"
19
+ error "Message Hubot Error: Timed out"
20
20
  rescue Errno::EHOSTUNREACH
21
- error "Host unreachable"
21
+ error "Message Hubot Error: Host unreachable"
22
22
  rescue Errno::ECONNREFUSED
23
- error "Connection refused"
23
+ error "Message Hubot Error: Connection refused"
24
24
  rescue Net::SSH::AuthenticationFailed
25
- error "Authentication failure"
25
+ error "Message Hubot Error: Authentication failure"
26
26
  rescue => err
27
27
  error err
28
28
  end
@@ -30,13 +30,13 @@ def message_hubot
30
30
  when Net::HTTPSuccess then
31
31
  info "Successfully notified Hubot"
32
32
  when Net::HTTPBadGateway then
33
- error "Bad Gateway, (is Hubot running?)"
33
+ error "Message Hubot Error: Bad Gateway, (is Hubot running?)"
34
34
  when Net::HTTPNotFound then
35
- error "Not Found, (wrong URI?)"
35
+ error "Message Hubot Error: Not Found, (wrong URI?)"
36
36
  when Net::HTTPUnauthorized
37
- error "Authentication failure"
37
+ error "Message Hubot Error: Authentication failure"
38
38
  else
39
- error "Not able to message Hubot for some reason; continuing the deployment."
39
+ error "Message Hubot Error: Not able to message Hubot for some reason; continuing the deployment."
40
40
  end
41
41
  debug "Response is #{response.inspect}"
42
42
  end
@@ -30,7 +30,7 @@ namespace :notify_hubot do
30
30
  task :updated => :set_log_level do
31
31
  on roles(:notify_hubot) do |host|
32
32
  set :title, "Code Updated, finishing up"
33
- set :message, "Application: `#{fetch(:application)}`\nHost: #{host}"
33
+ set :message, "Application: `#{fetch(:application)}`\nHost: #{host}\nBranch: #{fetch(:branch)}"
34
34
  set :color, "9900CC"
35
35
  message_hubot
36
36
  end
@@ -40,7 +40,7 @@ namespace :notify_hubot do
40
40
  task :finished => :set_log_level do
41
41
  on roles(:notify_hubot) do |host|
42
42
  set :title, "Successful Deploy"
43
- set :message, "Application: `#{fetch(:application)}`\nHost: #{host}"
43
+ set :message, "Application: `#{fetch(:application)}`\nHost: #{host}\nBranch: #{fetch(:branch)}"
44
44
  set :color, "good"
45
45
  message_hubot
46
46
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-notify-hubot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
5
- prerelease:
4
+ version: 0.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - david amick
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-08-05 00:00:00.000000000 Z
11
+ date: 2015-08-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: capistrano
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: deployinator
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: sshkit
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -90,28 +81,27 @@ files:
90
81
  homepage: https://github.com/snarlysodboxer/capistrano-notify-hubot
91
82
  licenses:
92
83
  - GNU
84
+ metadata: {}
93
85
  post_install_message:
94
86
  rdoc_options: []
95
87
  require_paths:
96
88
  - lib
97
89
  required_ruby_version: !ruby/object:Gem::Requirement
98
- none: false
99
90
  requirements:
100
- - - ! '>='
91
+ - - '>='
101
92
  - !ruby/object:Gem::Version
102
93
  version: 1.9.3
103
94
  required_rubygems_version: !ruby/object:Gem::Requirement
104
- none: false
105
95
  requirements:
106
- - - ! '>='
96
+ - - '>='
107
97
  - !ruby/object:Gem::Version
108
98
  version: '0'
109
99
  requirements:
110
100
  - A Hubot instance
111
101
  rubyforge_project:
112
- rubygems_version: 1.8.23.2
102
+ rubygems_version: 2.0.14
113
103
  signing_key:
114
- specification_version: 3
104
+ specification_version: 4
115
105
  summary: Notify Hubot during Capistrano Deployments
116
106
  test_files: []
117
107
  has_rdoc: