mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
23 lines
509 B
Ruby
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
|