Class: Simmer::Util::FileSystem

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

Overview

Provides convenience methods for working with the file system.

Class Method Summary collapse

Class Method Details

.setup_directory(dir_path) ⇒ Object



17
18
19
20
21
# File 'lib/simmer/util/file_system.rb', line 17

def setup_directory(dir_path)
  File.expand_path(dir_path).tap do |expanded_dir|
    FileUtils.mkdir_p(expanded_dir)
  end
end