Class: AwsAuditor::Scripts::Inspect
- Inherits:
-
Object
- Object
- AwsAuditor::Scripts::Inspect
- Extended by:
- AWSWrapper, OpsWorksWrapper
- Defined in:
- lib/aws_auditor/scripts/inspect.rb
Instance Attribute Summary
Attributes included from AWSWrapper
Attributes included from OpsWorksWrapper
Class Method Summary collapse
- .execute(environment, options = nil) ⇒ Object
- .inspect_caches ⇒ Object
- .inspect_dbs ⇒ Object
- .inspect_stacks ⇒ Object
Class Method Details
.execute(environment, options = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/aws_auditor/scripts/inspect.rb', line 7 def self.execute(environment, =nil) aws(environment) if [:ec2] inspect_stacks elsif [:rds] inspect_dbs elsif [:cache] inspect_caches else puts "You must use a switch. See `aws-auditor inspect --help` for more info." end end |
.inspect_caches ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/aws_auditor/scripts/inspect.rb', line 36 def self.inspect_caches CacheInstance.get_instances.each do |cache| puts "========================" puts "#{cache.name}" puts "========================" puts cache.to_s puts "\n" end end |
.inspect_dbs ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/aws_auditor/scripts/inspect.rb', line 26 def self.inspect_dbs RDSInstance.get_instances.each do |db| puts "========================" puts "#{db.name}" puts "========================" puts db.to_s puts "\n" end end |