module Billy::Disk

Public Instance Methods

create_path(path) click to toggle source
# File lib/billygoat/disk.rb, line 5
def create_path(path)
  FileUtils.mkdir_p(path)
end
save_yaml(file_path, object) click to toggle source
# File lib/billygoat/disk.rb, line 9
def save_yaml(file_path, object)
  File.open(file_path, 'w') { |file| file.write(object.to_yaml) }
end