lib/chap/hook.rb in chap-0.0.4 vs lib/chap/hook.rb in chap-0.0.5
- old
+ new
@@ -26,9 +26,16 @@
FileUtils.rm_rf(dest) if File.exist?(dest)
FileUtils.ln_s(src,dest)
end
end
+ def rm_rvmrc
+ %w[.rvmrc .ruby-version].each do |file|
+ path = "#{release_path}/#{file}"
+ run "rm -f #{path}" if File.exist?(path)
+ end
+ end
+
def with(prepend)
prev, @with = @with, prepend
yield
@with = prev
end
\ No newline at end of file