Module: Cliaws
- Defined in:
- lib/cliaws.rb,
lib/cliaws/s3.rb,
lib/cliaws/ec2.rb,
lib/cliaws/sqs.rb,
lib/cliaws/cli/s3.rb,
lib/cliaws/cli/ec2.rb,
lib/cliaws/cli/sqs.rb
Defined Under Namespace
Modules: Cli
Classes: Ec2, S3, Sqs
Class Method Summary
collapse
Class Method Details
.access_key_id ⇒ Object
6
7
8
|
# File 'lib/cliaws.rb', line 6
def self.access_key_id
ENV["AWS_ACCESS_KEY_ID"]
end
|
.ec2 ⇒ Object
14
15
16
|
# File 'lib/cliaws.rb', line 14
def self.ec2
@@ec2 ||= Cliaws::Ec2.new(access_key_id, secret_access_key)
end
|
.s3 ⇒ Object
18
19
20
|
# File 'lib/cliaws.rb', line 18
def self.s3
@@s3 ||= Cliaws::S3.new(access_key_id, secret_access_key)
end
|
.secret_access_key ⇒ Object
10
11
12
|
# File 'lib/cliaws.rb', line 10
def self.secret_access_key
ENV["AWS_SECRET_ACCESS_KEY"]
end
|
.sqs ⇒ Object
22
23
24
|
# File 'lib/cliaws.rb', line 22
def self.sqs
@@sqs ||= Cliaws::Sqs.new(access_key_id, secret_access_key)
end
|