class Sanctuary::Reader
Public Class Methods
directory?(path = "")
click to toggle source
# File lib/sanctuary/reader.rb, line 18 def self.directory?(path = "") Pathname.new(HOME_DIR + "/#{path}").directory? end
read_recipes(path = "")
click to toggle source
# File lib/sanctuary/reader.rb, line 10 def self.read_recipes(path = "") Dir.open(HOME_DIR.gsub("templates", "recipes") + "/#{path}").to_a end
read_scripts(path = "")
click to toggle source
# File lib/sanctuary/reader.rb, line 14 def self.read_scripts(path = "") Dir.open(HOME_DIR.gsub("templates", "scripts") + "/#{path}").to_a end
read_templates(path = "")
click to toggle source
# File lib/sanctuary/reader.rb, line 6 def self.read_templates(path = "") Dir.open(HOME_DIR + "/#{path}").to_a end