Module: Ensurable::Now

Defined in:
lib/ensurable/now.rb

Class Method Summary collapse

Class Method Details

.now!Object



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