raykit 0.0.436 → 0.0.437

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raykit/git/repository.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d865316dff0eca92f0b0f857c9e2d95bd8d01812c736ed9f5a49129df2e5bd5
4
- data.tar.gz: 3828e7dddeb815466c09e3f2b62b6fc714ac58f4c2bcb1031bda574628c0e27a
3
+ metadata.gz: 98cf5f0bdd9cebb7f589fd780db251516e8ce5a5c949a4f78bc8657c0922aef1
4
+ data.tar.gz: 54ef2e3a238e2ea18ba3455218649397e1dff762b7398e0570df5db87aebf080
5
5
  SHA512:
6
- metadata.gz: b08f54e7782e0f17a6e710df3e6837f27409ac0fe38fcf9cd38e04376651835c123f30629ecd42f19e847a1064bfa7380f1ffb74bf65aa490055bf4bf954dc6a
7
- data.tar.gz: 03e01d3138d5f57d766b83b4fb03045400fd431809f2658d9ab976def318a8496d3696c9523e880dbc76cd8edf38aeb6692d135ffcd0a50934357052bac6672f
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() ##.summary().details_on_failure
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
- make_dir = repo.get_dev_dir("make") + "/" + commit_id
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() #.summary().details_on_failure
226
+ cmd = cmd.run().summary()
225
227
  end
226
228
  FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
227
229
  cmd
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.436
4
+ version: 0.0.437
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow