Class: Gretl::PortInfo
- Inherits:
-
Struct
- Object
- Struct
- Gretl::PortInfo
- Defined in:
- lib/gretl.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#group ⇒ Object
Returns the value of attribute group.
-
#has_command ⇒ Object
Returns the value of attribute has_command.
-
#is_docker ⇒ Object
Returns the value of attribute is_docker.
-
#links ⇒ Object
Returns the value of attribute links.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#port ⇒ Object
Returns the value of attribute port.
-
#process ⇒ Object
Returns the value of attribute process.
Instance Method Summary collapse
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active
8 9 10 |
# File 'lib/gretl.rb', line 8 def active @active end |
#group ⇒ Object
Returns the value of attribute group
8 9 10 |
# File 'lib/gretl.rb', line 8 def group @group end |
#has_command ⇒ Object
Returns the value of attribute has_command
8 9 10 |
# File 'lib/gretl.rb', line 8 def has_command @has_command end |
#is_docker ⇒ Object
Returns the value of attribute is_docker
8 9 10 |
# File 'lib/gretl.rb', line 8 def is_docker @is_docker end |
#links ⇒ Object
Returns the value of attribute links
8 9 10 |
# File 'lib/gretl.rb', line 8 def links @links end |
#name ⇒ Object
Returns the value of attribute name
8 9 10 |
# File 'lib/gretl.rb', line 8 def name @name end |
#pid ⇒ Object
Returns the value of attribute pid
8 9 10 |
# File 'lib/gretl.rb', line 8 def pid @pid end |
#port ⇒ Object
Returns the value of attribute port
8 9 10 |
# File 'lib/gretl.rb', line 8 def port @port end |
#process ⇒ Object
Returns the value of attribute process
8 9 10 |
# File 'lib/gretl.rb', line 8 def process @process end |
Instance Method Details
#running? ⇒ Boolean
13 |
# File 'lib/gretl.rb', line 13 def running? = active |
#stopped? ⇒ Boolean
14 |
# File 'lib/gretl.rb', line 14 def stopped? = !active |
#to_s ⇒ Object
15 |
# File 'lib/gretl.rb', line 15 def to_s = "#<PortInfo #{name.inspect} :#{port} #{active ? "running" : "stopped"}>" |