Class: Tama::Controllers::TamaController
- Inherits:
-
Controller
- Object
- Controller
- Tama::Controllers::TamaController
- Defined in:
- lib/controllers/controller.rb
Overview
The TamaController is a controller that has two apis A RightAws::Ec2 object for handling Amazon Ec2 requests and a WakameApi for handling requests to Wakame-vdc
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Controller
Instance Method Summary collapse
-
#initialize(access_key, ec2_host, ec2_port, ec2_protocol, wakame_host, wakame_port, wakame_protocol) ⇒ TamaController
constructor
A new instance of TamaController.
Methods inherited from Controller
Constructor Details
#initialize(access_key, ec2_host, ec2_port, ec2_protocol, wakame_host, wakame_port, wakame_protocol) ⇒ TamaController
Returns a new instance of TamaController.
43 44 45 46 47 48 |
# File 'lib/controllers/controller.rb', line 43 def initialize(access_key,ec2_host,ec2_port,ec2_protocol,wakame_host,wakame_port,wakame_protocol) super([ A::WakameApi.new(access_key,wakame_host,wakame_port,wakame_protocol), RightAws::Ec2.new(access_key,"dummy",{:server => ec2_host,:port => ec2_port,:protocol => ec2_protocol}) ]) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Tama::Controllers::Controller