Class: Skewer::AWS::Service
- Inherits:
-
Object
- Object
- Skewer::AWS::Service
- Defined in:
- lib/aws/service.rb
Overview
The AWS service which is used to interface through to the AWS cloud using Fog.
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize ⇒ Service
Returns a new instance of Service.
8 9 10 11 12 13 14 |
# File 'lib/aws/service.rb', line 8 def initialize region = SkewerConfig.get('region') @service = Fog::Compute.new({ :provider => 'AWS', :region => region}) SkewerConfig.set 'aws_service', @service end |
Instance Attribute Details
#service ⇒ Object (readonly)
Returns the value of attribute service.
6 7 8 |
# File 'lib/aws/service.rb', line 6 def service @service end |
Class Method Details
.service ⇒ Object
16 17 18 |
# File 'lib/aws/service.rb', line 16 def self.service self.new.service end |