raykit 0.0.480 → 0.0.481
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit.rb +9 -0
- 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: 38d402cea1407812e033962407d71bf025e1cde5adac77a2cfa5c9fb91151969
|
4
|
+
data.tar.gz: e093d36fe9480c78b66071c0a5c49e6cefb9afb6c8569187d150c2aa11652189
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|