lib/makit/command_runner.rb in makit-0.0.20 vs lib/makit/command_runner.rb in makit-0.0.21

- old
+ new

@@ -41,11 +41,13 @@ # and use it to create a cache filename, making sure it is a valid filename, # by replacing all characters that are not valid in a filename with an underscore # also replacing any path delimiters with an underscore int_hash = command_request.to_hash hash_string = "#{int_hash}"[0, 8] - cache_filename = Makit::Directories::PROJECT_ARTIFACTS + - "/commands/#{hash_string}.pb" + cache_filename = get_cache_filename(command_request) + + #Makit::Directories::PROJECT_ARTIFACTS + + # "/commands/#{hash_string}.pb" #puts "cache_filename: #{cache_filename}" #cache_filename = Makit::Directories::PROJECT_ARTIFACTS + "/commands/#{command_request.name}.#{command_request.arguments.join("_")}.#{timestamp.seconds}.pb" if File.exist?(cache_filename) #puts "cache file date: #{File.mtime(cache_filename)}"