raykit 0.0.436 → 0.0.437
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/raykit/git/repository.rb +5 -3
- 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: 98cf5f0bdd9cebb7f589fd780db251516e8ce5a5c949a4f78bc8657c0922aef1
|
4
|
+
data.tar.gz: 54ef2e3a238e2ea18ba3455218649397e1dff762b7398e0570df5db87aebf080
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3faa3938c63672db01a90069493479b3eb7dbf8e91bf64802314a3899edab69128d0b7f7d9c6a9860f9ed5df518246cfd09a296bb7a29091fa1cd01c45829610
|
7
|
+
data.tar.gz: 0da88c6acf36b409c5fff76a837c363ef8232ea26dd4fb3381ff235e3f2b406c42e682d6f5750f050dd5a8f441f41191c917fdaa1ae9a35fbe06c7060b88ccdc
|
@@ -197,20 +197,22 @@ module Raykit
|
|
197
197
|
|
198
198
|
def self.work_url(url, cmd)
|
199
199
|
repo = Raykit::Git::Repository.new(url)
|
200
|
+
puts " work #{url} #{command}"
|
200
201
|
work_dir = repo.get_dev_dir("work")
|
201
202
|
repo.clone(work_dir) if !Dir.exist?(work_dir)
|
202
203
|
Dir.chdir(work_dir) do
|
203
204
|
run("git pull")
|
204
205
|
#run(cmd)
|
205
206
|
cmd = Raykit::Command.new(cmd)
|
206
|
-
cmd = cmd.run()
|
207
|
+
cmd = cmd.run().summary()
|
207
208
|
cmd
|
208
209
|
end
|
209
210
|
end
|
210
211
|
|
211
212
|
def self.make_url(url, commit_id, command)
|
212
213
|
repo = Raykit::Git::Repository.new(url)
|
213
|
-
|
214
|
+
puts " make #{url} #{commit_id} #{command}"
|
215
|
+
make_dir = Raykit::Environment::normalize_path(repo.get_dev_dir("make") + "/" + commit_id)
|
214
216
|
FileUtils.mkdir_p(repo.get_dev_dir("make")) if !Dir.exist?(repo.get_dev_dir("make"))
|
215
217
|
if (Dir.exist?(make_dir))
|
216
218
|
FileUtils.rm_rf(make_dir)
|
@@ -221,7 +223,7 @@ module Raykit
|
|
221
223
|
run("git reset --hard #{commit_id}")
|
222
224
|
FileUtils.rm_rf(".git")
|
223
225
|
cmd = Raykit::Command.new(command)
|
224
|
-
cmd = cmd.run()
|
226
|
+
cmd = cmd.run().summary()
|
225
227
|
end
|
226
228
|
FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
|
227
229
|
cmd
|