Class: Simmer::Externals::FileSystem

Inherits:
Object
  • Object
show all
Defined in:
lib/simmer/externals/file_system.rb

Overview

Provides the shared basics of all file systems.

Direct Known Subclasses

AwsFileSystem, LocalFileSystem

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ FileSystem

Returns a new instance of FileSystem.

Raises:

  • (ArgumentError)


18
19
20
21
22
# File 'lib/simmer/externals/file_system.rb', line 18

def initialize(root)
  @root = root.to_s

  raise ArgumentError, "root: #{root} must end in #{SUFFIX}" unless root.end_with?(SUFFIX)
end