Class: StackMate::CloudStackResource

Inherits:
Ruote::Participant
  • Object
show all
Includes:
Logging
Defined in:
lib/stackmate/participants/cloudstack.rb

Direct Known Subclasses

CloudStackInstance, CloudStackSecurityGroup

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

configure_logger_for, #logger, logger_for

Constructor Details

#initializeCloudStackResource

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

#nameObject (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_workitemObject



26
27
28
29
# File 'lib/stackmate/participants/cloudstack.rb', line 26

def on_workitem
  p workitem.participant_name
  reply
end