Class: Skewer::AWS::Service

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeService

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

#serviceObject (readonly)

Returns the value of attribute service.



6
7
8
# File 'lib/aws/service.rb', line 6

def service
  @service
end

Class Method Details

.serviceObject



16
17
18
# File 'lib/aws/service.rb', line 16

def self.service
  self.new.service
end