raykit 0.0.433 → 0.0.435
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/git/repository.rb +6 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2105e95c04a09dff02d244df156138ee1562dcd0bb8d6e179aa7f7edcf41ba5c
|
4
|
+
data.tar.gz: bac5e8131a8b2d7dfb4a511f6093930d25d55bf00f54809f6a2926f6caffd305
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f24b9f1cea0934b489e2b064a887e90584a4734afa4db8359436f40e6bff99096eb099b2bf91ce1dc8949881c4e52c81b420c20ff138bd0969c0e934e36abec
|
7
|
+
data.tar.gz: bbcb87cbdb3ca07535ee047add4b9aa6c0e4f48fd8b0cf446fc38faaa84f8f7f78137baafd47ec49ee4f76eea1eba714f345a4c29ec4ac3ae8c0e3397c063568
|
@@ -147,6 +147,7 @@ module Raykit
|
|
147
147
|
def work(command)
|
148
148
|
pull if (!Dir.exist?(get_dev_dir("work")))
|
149
149
|
filename = "#{Raykit::Environment::log_dir}/work_#{relative_path.gsub("/", "-")}.json"
|
150
|
+
puts " filename #{filename}"
|
150
151
|
if (Raykit::Git::Directory.new(get_dev_dir("work")).outstanding_commit?)
|
151
152
|
puts " outstanding commit in #{get_dev_dir("work")}"
|
152
153
|
work_cmd = Raykit::Git::Repository::work(url, command)
|
@@ -167,8 +168,9 @@ module Raykit
|
|
167
168
|
def make(command)
|
168
169
|
commit_id = "#{latest_commit(default_branch)}"
|
169
170
|
make_id = "make_#{relative_path.gsub("/", "-")}_#{commit_id}"
|
170
|
-
filename = "#{Raykit::Environment::log_dir}
|
171
|
-
|
171
|
+
filename = "#{Raykit::Environment::log_dir}/#{make_id}.json"
|
172
|
+
puts " filename #{filename}"
|
173
|
+
if (File.exist?(filename))
|
172
174
|
return Raykit::Command::parse(IO.read(filename))
|
173
175
|
#make_cmd.summary(true).details_on_failure
|
174
176
|
else
|
@@ -213,8 +215,8 @@ module Raykit
|
|
213
215
|
def self.make_url(url, commit_id, command)
|
214
216
|
repo = Raykit::Git::Repository.new(url)
|
215
217
|
make_dir = repo.get_dev_dir("make") + "/" + commit_id
|
216
|
-
FileUtils.mkdir_p(repo.get_dev_dir("make")) if !Dir.
|
217
|
-
if (Dir.
|
218
|
+
FileUtils.mkdir_p(repo.get_dev_dir("make")) if !Dir.exist?(repo.get_dev_dir("make"))
|
219
|
+
if (Dir.exist?(make_dir))
|
218
220
|
FileUtils.rm_rf(make_dir)
|
219
221
|
end
|
220
222
|
run("git clone #{url} #{make_dir}")
|