lib/makit/mp/string_mp.rb in makit-0.0.21 vs lib/makit/mp/string_mp.rb in makit-0.0.22
- old
+ new
@@ -33,28 +33,17 @@
end
Makit::RUNNER.try(request)
end
end
- def cache_run(args = nil, timestamp = nil)
-
+ def cache_run(timestamp = nil)
if timestamp.nil?
- timestamp = Makit::Directory.get_newest_git_file_timestamp(Makit::Directories::PROJECT_ROOT)
+ timestamp = Makit::GIT_FILE_INFOS.first.mtime #GIT_FILE_INFOS. Makit::Directory.get_newest_git_file_timestamp(Makit::Directories::PROJECT_ROOT)
#timestamp = Makit::Timestamp.now
end
- if args.nil?
- command = self
- Makit::RUNNER.cache_run(Makit::RUNNER::parse_command_request(command), timestamp)
- else
- command = self
- request = Makit::RUNNER.parse_args(command)
- if args.is_a?(Hash)
- args.each do |key, value|
- request.send("#{key}=", value)
- end
- end
- Makit::RUNNER.cache_run(request, timestamp)
- end
+
+ command = self
+ Makit::RUNNER.cache_run(Makit::RUNNER::parse_command_request(command), timestamp)
end
# Read a value from a JSON file
# key is a string with the key to read, e.g. "AzureAd.Authority"
def get_json_value(key)