Class: Capistrano::PumaCommon::PumaBind
- Inherits:
-
Struct
- Object
- Struct
- Capistrano::PumaCommon::PumaBind
- Defined in:
- lib/capistrano/puma.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#full_address ⇒ Object
Returns the value of attribute full_address.
-
#kind ⇒ Object
Returns the value of attribute kind.
Instance Method Summary collapse
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address
61 62 63 |
# File 'lib/capistrano/puma.rb', line 61 def address @address end |
#full_address ⇒ Object
Returns the value of attribute full_address
61 62 63 |
# File 'lib/capistrano/puma.rb', line 61 def full_address @full_address end |
#kind ⇒ Object
Returns the value of attribute kind
61 62 63 |
# File 'lib/capistrano/puma.rb', line 61 def kind @kind end |
Instance Method Details
#local ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/capistrano/puma.rb', line 74 def local if unix? self else PumaBind.new( localize_address(full_address), kind, localize_address(address) ) end end |
#ssl? ⇒ Boolean
66 67 68 |
# File 'lib/capistrano/puma.rb', line 66 def ssl? kind == :ssl end |
#tcp ⇒ Object
70 71 72 |
# File 'lib/capistrano/puma.rb', line 70 def tcp kind == :tcp || ssl? end |
#unix? ⇒ Boolean
62 63 64 |
# File 'lib/capistrano/puma.rb', line 62 def unix? kind == :unix end |