Method: Amazon#size_to_instance_type
- Defined in:
- lib/cluster/infrastructures/amazon.rb
permalink #size_to_instance_type(size) ⇒ Object
[View source]
264 265 266 267 268 269 270 |
# File 'lib/cluster/infrastructures/amazon.rb', line 264 def size_to_instance_type(size) unless self.class.sizes.include? size.downcase puts "#{Cluster::NAME} does not have a machine size of #{size}\n\tAvailable Sizes: (#{self.class.sizes.join(', ')})" exit 2 end AmazonInstance.size_to_type(size) end |