Class: Capistrano::PumaCommon::PumaBind

Inherits:
Struct
  • Object
show all
Defined in:
lib/capistrano/puma.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressObject

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



67
68
69
# File 'lib/capistrano/puma.rb', line 67

def address
  @address
end

#full_addressObject

Returns the value of attribute full_address

Returns:

  • (Object)

    the current value of full_address



67
68
69
# File 'lib/capistrano/puma.rb', line 67

def full_address
  @full_address
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



67
68
69
# File 'lib/capistrano/puma.rb', line 67

def kind
  @kind
end

Instance Method Details

#localObject



80
81
82
83
84
85
86
87
88
89
90
# File 'lib/capistrano/puma.rb', line 80

def local
  if unix?
    self
  else
    PumaBind.new(
      localize_address(full_address),
      kind,
      localize_address(address)
    )
  end
end

#ssl?Boolean

Returns:

  • (Boolean)


72
73
74
# File 'lib/capistrano/puma.rb', line 72

def ssl?
  kind == :ssl
end

#tcpObject



76
77
78
# File 'lib/capistrano/puma.rb', line 76

def tcp
  kind == :tcp || ssl?
end

#unix?Boolean

Returns:

  • (Boolean)


68
69
70
# File 'lib/capistrano/puma.rb', line 68

def unix?
  kind == :unix
end