raykit 0.0.480 → 0.0.481

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.rb +9 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c64a19835063de18de321aba140b61844fc8aa2d48465c2d8b0f2ea599245e3a
4
- data.tar.gz: c1baad1cbc6aa03bd9741b6e02552853df88ef5660f64a21fe205d63a992992d
3
+ metadata.gz: 38d402cea1407812e033962407d71bf025e1cde5adac77a2cfa5c9fb91151969
4
+ data.tar.gz: e093d36fe9480c78b66071c0a5c49e6cefb9afb6c8569187d150c2aa11652189
5
5
  SHA512:
6
- metadata.gz: 685de5f70b2049e4feff9ddb88d660a11f160c9a3ff669481ca7efe3d5337982909f2da529bf7c1456a44650773ced9e3e502c1bf3fa9201dd9abf5919a12714
7
- data.tar.gz: 999a509bcf835412abd590e1090658f953ffb386c601eb6e9e73e3f8387f41942c861c870c7c5f9f34d79cb86650873ec52cdcf590a844577975fdb4d80031cb
6
+ metadata.gz: 01710b3e78a99deea83fff61099b9c16aa1ccb1d2c4846f47332a204a5cb1dd2488a4465cb70b3b57585e275efc0b4b07e486abf02a13e1fca417dc06fe10a17
7
+ data.tar.gz: '094080a742104363063216e1c75b6af0f44b6daa4463862b60a06ed52723688c64ff0666928f27ce27a25572dedd94731e43db4cda33e4be74e7ad1c235598ec'
data/lib/raykit.rb CHANGED
@@ -35,6 +35,15 @@ Raykit::MsBuild::fix_msbuild_path
35
35
 
36
36
  Raykit::AutoSetup.run if RAYKIT_AUTO_SETUP
37
37
 
38
+ def backup_git_directory
39
+ if ENV["GIT_BACKUP_DIR"] && !ENV["GIT_BACKUP_DIR"].empty?
40
+ puts "Backing up #{GIT_DIRECTORY.repository.url}"
41
+ Raykit::Git::Repository::backup GIT_DIRECTORY.repository.url, "#{ENV["GIT_BACKUP_DIR"]}/#{GIT_DIRECTORY.repository.relative_path}"
42
+ else
43
+ puts "Environment variable GIT_BACKUP_DIR is not set"
44
+ end
45
+ end
46
+
38
47
  # include Raykit::TopLevel to make run method accessible from the global scope
39
48
  module Raykit
40
49
  module TopLevel
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.480
4
+ version: 0.0.481
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow