Class: StackMate::CloudStackResource
- Inherits:
-
Ruote::Participant
- Object
- Ruote::Participant
- StackMate::CloudStackResource
- Includes:
- Logging
- Defined in:
- lib/stackmate/participants/cloudstack.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ CloudStackResource
constructor
A new instance of CloudStackResource.
- #on_workitem ⇒ Object
Methods included from Logging
configure_logger_for, #logger, logger_for
Constructor Details
#initialize ⇒ CloudStackResource
Returns a new instance of CloudStackResource.
19 20 21 22 23 24 |
# File 'lib/stackmate/participants/cloudstack.rb', line 19 def initialize() @url = ENV['URL'] @apikey = ENV['APIKEY'] @seckey = ENV['SECKEY'] @client = CloudstackRubyClient::Client.new(@url, @apikey, @seckey, false) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
17 18 19 |
# File 'lib/stackmate/participants/cloudstack.rb', line 17 def name @name end |
Instance Method Details
#on_workitem ⇒ Object
26 27 28 29 |
# File 'lib/stackmate/participants/cloudstack.rb', line 26 def on_workitem p workitem.participant_name reply end |