lib/shaddox/shadow.rb in shaddox-0.0.9 vs lib/shaddox/shadow.rb in shaddox-0.0.10
- old
+ new
@@ -31,9 +31,10 @@
raise "#{line} failed" unless $? == 0 or !@required
end
def cd(path, &block)
current_path = Dir.pwd
+ mkdir(path)
FileUtils.cd(path.exp_path)
instance_eval(&block)
FileUtils.cd(current_path)
end