5 6 7 8 9 10 11 12 13 14
# File 'lib/ensurable/now.rb', line 5 def self.now! dir = Dir.pwd path = dir + '/ensure.rb' if File.exist?(path) Ensurable.ensure(File.new(path)) else Dir.chdir('..') now! end end