lib/makit/tasks.rb in makit-0.0.46 vs lib/makit/tasks.rb in makit-0.0.47
- old
+ new
@@ -43,13 +43,14 @@
end
desc "Update dependencies."
task :update do
Makit::SHOW.task(:update)
+ yesterday = Time.now - 24 * 60 * 60
system("bundle update") if File.exist?("Gemfile")
# glob all *.csproj files
Dir.glob("**/*.csproj").each do |file|
- "dotnet format #{file}".run
+ "dotnet format #{file}".cache_try(yesterday)
end
end
# Register the at_exit hook for cleanup
at_exit do