Class: Tama::Controllers::TamaController

Inherits:
Controller
  • Object
show all
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

TamaTestController

Instance Attribute Summary

Attributes inherited from Controller

#api

Instance Method Summary collapse

Methods inherited from Controller

#method_missing

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