Class: GerritEventRouter::Gerrit::Config
- Inherits:
-
Config::Base
- Object
- Config::Base
- GerritEventRouter::Gerrit::Config
- Defined in:
- lib/ger/gerrit.rb
Constant Summary collapse
- DEFAULT_PORT =
29418
- COMMAND =
'gerrit stream-events'
- VERSION =
'gerrit version'
Instance Attribute Summary collapse
-
#broker ⇒ Object
readonly
Returns the value of attribute broker.
-
#routing_key ⇒ Object
readonly
Returns the value of attribute routing_key.
-
#ssh_keys ⇒ Object
readonly
Returns the value of attribute ssh_keys.
-
#weburl ⇒ Object
readonly
Returns the value of attribute weburl.
Attributes inherited from Config::Base
Instance Method Summary collapse
- #command ⇒ Object
- #default_port ⇒ Object
- #header ⇒ Object
-
#initialize(name, uri, weburl, ssh_keys, broker, routing_key) ⇒ Config
constructor
A new instance of Config.
- #version ⇒ Object
Methods inherited from Config::Base
Constructor Details
#initialize(name, uri, weburl, ssh_keys, broker, routing_key) ⇒ Config
Returns a new instance of Config.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ger/gerrit.rb', line 11 def initialize(name, uri, weburl, ssh_keys, broker, routing_key) super(name, uri) if ssh_keys.kind_of? Array then @ssh_keys = ssh_keys elsif ssh_keys.kind_of? String then @ssh_keys= [ ssh_keys ] end @weburl = weburl @broker = broker @routing_key = routing_key end |
Instance Attribute Details
#broker ⇒ Object (readonly)
Returns the value of attribute broker.
39 40 41 |
# File 'lib/ger/gerrit.rb', line 39 def broker @broker end |
#routing_key ⇒ Object (readonly)
Returns the value of attribute routing_key.
39 40 41 |
# File 'lib/ger/gerrit.rb', line 39 def routing_key @routing_key end |
#ssh_keys ⇒ Object (readonly)
Returns the value of attribute ssh_keys.
39 40 41 |
# File 'lib/ger/gerrit.rb', line 39 def ssh_keys @ssh_keys end |
#weburl ⇒ Object (readonly)
Returns the value of attribute weburl.
39 40 41 |
# File 'lib/ger/gerrit.rb', line 39 def weburl @weburl end |
Instance Method Details
#command ⇒ Object
27 28 29 |
# File 'lib/ger/gerrit.rb', line 27 def command COMMAND end |
#default_port ⇒ Object
23 24 25 |
# File 'lib/ger/gerrit.rb', line 23 def default_port DEFAULT_PORT end |
#version ⇒ Object
31 32 33 |
# File 'lib/ger/gerrit.rb', line 31 def version VERSION end |