Sha256: 80898d2bbf492f67be2db5e05fedf82abdf6283074ad51fb1c3c429de2ac41a3
Contents?: true
Size: 450 Bytes
Versions: 12
Compression:
Stored size: 450 Bytes
Contents
module Padrino module Tasks module Helpers def chdir(dir) return unless dir begin Dir.chdir(dir.to_s) rescue Errno::ENOENT puts "=> Specified Padrino root '#{dir}' " + "does not appear to exist!" rescue Errno::EACCES puts "=> Specified Padrino root '#{dir}' " + "cannot be accessed by the current user!" end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems