class Mist
Public Instance Methods
cheapest()
click to toggle source
# File lib/mist.rb, line 42 def cheapest # Scan for cheapest available machine (EC2 market) end
config(service)
click to toggle source
# File lib/mist.rb, line 14 def config(service) case service when 'aws','AWS','Amazon Web Services' @config = Client.get_config say("MIST => Amazon Web Services EC2 Setup") public_key = ask("Public Key: ") private_key = ask("Secret Key: ") puts @config @config[:services] = { :aws => { :public_key => public_key, :private_key => private_key } } Client.set_config @config else puts "That service schema was not recognized." end end
start(machine)
click to toggle source
# File lib/mist.rb, line 38 def start(machine) Services.new(:boot => machine) end