Class: ProcessBot::Capistrano::Puma::Common::PumaBind
- Inherits:
-
Struct
- Object
- Struct
- ProcessBot::Capistrano::Puma::Common::PumaBind
- Defined in:
- lib/process_bot/capistrano/puma/common.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
48 49 50 |
# File 'lib/process_bot/capistrano/puma/common.rb', line 48 def address @address end |
#full_address ⇒ Object
Returns the value of attribute full_address
48 49 50 |
# File 'lib/process_bot/capistrano/puma/common.rb', line 48 def full_address @full_address end |
#kind ⇒ Object
Returns the value of attribute kind
48 49 50 |
# File 'lib/process_bot/capistrano/puma/common.rb', line 48 def kind @kind end |
Instance Method Details
#local ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/process_bot/capistrano/puma/common.rb', line 61 def local if unix? self else PumaBind.new( localize_address(full_address), kind, localize_address(address) ) end end |
#ssl? ⇒ Boolean
53 54 55 |
# File 'lib/process_bot/capistrano/puma/common.rb', line 53 def ssl? kind == :ssl end |
#tcp ⇒ Object
57 58 59 |
# File 'lib/process_bot/capistrano/puma/common.rb', line 57 def tcp kind == :tcp || ssl? end |
#unix? ⇒ Boolean
49 50 51 |
# File 'lib/process_bot/capistrano/puma/common.rb', line 49 def unix? kind == :unix end |