Class: Capistrano::Webhooks::Client
- Inherits:
-
Object
- Object
- Capistrano::Webhooks::Client
- Defined in:
- lib/capistrano/webhooks/client.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, options) ⇒ Client
constructor
A new instance of Client.
- #run ⇒ Object
Constructor Details
#initialize(url, options) ⇒ Client
Returns a new instance of Client.
8 9 10 11 |
# File 'lib/capistrano/webhooks/client.rb', line 8 def initialize(url, ) @url = url @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/capistrano/webhooks/client.rb', line 6 def @options end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/capistrano/webhooks/client.rb', line 6 def url @url end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 |
# File 'lib/capistrano/webhooks/client.rb', line 13 def run return if dry_run? connection.send [:method], url.to_s, [:payload] end |