Class: Fog::AWS::EFS::FileSystems

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/aws/models/efs/file_systems.rb

Instance Method Summary collapse

Instance Method Details

#allObject



9
10
11
12
# File 'lib/fog/aws/models/efs/file_systems.rb', line 9

def all
  data = service.describe_file_systems.body["FileSystems"]
  load(data)
end

#get(identity) ⇒ Object



14
15
16
17
18
19
# File 'lib/fog/aws/models/efs/file_systems.rb', line 14

def get(identity)
  data = service.describe_file_systems(:id => identity).body["FileSystems"].first
  new(data)
rescue Fog::AWS::EFS::NotFound
  nil
end