1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/models/efs/file_systems.rb
2016-10-06 22:49:27 -04:00

23 lines
509 B
Ruby

require 'fog/aws/models/efs/file_system'
module Fog
module AWS
class EFS
class FileSystems < Fog::Collection
model Fog::AWS::EFS::FileSystem
def all
data = service.describe_file_systems.body["FileSystems"]
load(data)
end
def get(identity)
data = service.describe_file_systems(:id => identity).body["FileSystems"].first
new(data)
rescue Fog::AWS::EFS::NotFound
nil
end
end
end
end
end