Class: Corosync::Resource
- Inherits:
-
Object
- Object
- Corosync::Resource
- Defined in:
- lib/corosync-ruby/resource.rb
Constant Summary collapse
- COMMAND =
"sudo crm resource"
Instance Attribute Summary collapse
-
#started_locally ⇒ Object
readonly
Returns the value of attribute started_locally.
-
#started_on ⇒ Object
readonly
Returns the value of attribute started_on.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(name) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(name) ⇒ Resource
Returns a new instance of Resource.
7 8 9 10 |
# File 'lib/corosync-ruby/resource.rb', line 7 def initialize(name) @name = name parse end |
Instance Attribute Details
#started_locally ⇒ Object (readonly)
Returns the value of attribute started_locally.
5 6 7 |
# File 'lib/corosync-ruby/resource.rb', line 5 def started_locally @started_locally end |
#started_on ⇒ Object (readonly)
Returns the value of attribute started_on.
5 6 7 |
# File 'lib/corosync-ruby/resource.rb', line 5 def started_on @started_on end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/corosync-ruby/resource.rb', line 5 def status @status end |