lib/humidifier/reservoir/config.rb in humidifier-reservoir-0.2.2 vs lib/humidifier/reservoir/config.rb in humidifier-reservoir-0.2.3
- old
+ new
@@ -21,10 +21,12 @@
def mapping_for(type)
mappings[type.to_sym]
end
def stack_path=(stack_path)
- raise Error, "Invalid filepath: #{stack_path}" unless File.exist?(stack_path)
+ unless File.exist?(stack_path)
+ raise Error, "Invalid filepath: #{stack_path}"
+ end
@stack_path = stack_path
end
def stacks
Dir["#{stack_path}/*"].each_with_object([]) do |name, names|