Class: ZAWS::AWS

Inherits:
Object
  • Object
show all
Defined in:
lib/zaws/services/aws.rb

Instance Method Summary collapse

Constructor Details

#initialize(shellout, awscli, undofile = nil) ⇒ AWS

Returns a new instance of AWS.



4
5
6
7
8
# File 'lib/zaws/services/aws.rb', line 4

def initialize(shellout, awscli,undofile=nil)
  @shellout=shellout
  @_awscli= awscli ? awscli : ZAWS::AWSCLI.new(@shellout)
  @undofile=undofile
end

Instance Method Details

#awscliObject



10
11
12
# File 'lib/zaws/services/aws.rb', line 10

def awscli
  return @_awscli
end

#cloud_trailObject



30
31
32
# File 'lib/zaws/services/aws.rb', line 30

def cloud_trail
  @_cloud_trail ||= (ZAWS::CloudTrail.new(@shellout, self))
end

#ec2Object



14
15
16
# File 'lib/zaws/services/aws.rb', line 14

def ec2
  @_ec2 ||= (ZAWS::EC2.new(@shellout, self,@undofile))
end

#elbObject



18
19
20
# File 'lib/zaws/services/aws.rb', line 18

def elb
  @_elb ||= (ZAWS::ELB.new(@shellout, self,@undofile))
end

#iamObject



34
35
36
# File 'lib/zaws/services/aws.rb', line 34

def iam
  @_iam ||= (ZAWS::IAM.new(@shellout, self))
end

#route53Object



22
23
24
# File 'lib/zaws/services/aws.rb', line 22

def route53
  @_route53 ||= (ZAWS::Route53.new(@shellout, self))
end

#s3Object



26
27
28
# File 'lib/zaws/services/aws.rb', line 26

def s3
  @_s3 ||= (ZAWS::S3.new(@shellout, self))
end