# File lib/ironfan/provider/ec2.rb, line 47 def self.applicable(computer) computer.server and computer.server.clouds.include?(:ec2) end
# File lib/ironfan/provider/ec2.rb, line 28 def self.aws_account_id() Chef::Config[:knife][:aws_account_id] end
Utility functions
# File lib/ironfan/provider/ec2.rb, line 14 def self.connection @@connection ||= Fog::Compute.new(self.aws_credentials.merge({ :provider => 'AWS' })) end
# File lib/ironfan/provider/ec2.rb, line 18 def self.elb @@elb ||= Fog::AWS::ELB.new(self.aws_credentials) end
Generated with the Darkfish Rdoc Generator 2.