raykit 0.0.462 → 0.0.463
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/directory.rb +0 -10
- 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: c7614f49907496570d6f65ef46157351d461b4f494f2bd10e256573e7aa0b970
|
4
|
+
data.tar.gz: dc412181dd57627f0361b869d52e506e453a35f272ddb725f2dd4c056f1a5cb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf2503f919119a8ba95b4b4912064bf9b633c778f332afde3a6e1f206ea1ff867a27eb3cfc7b236e5f3abe7a10ca2cf5d15ebf1a020bebacf64d0b093688fb4e
|
7
|
+
data.tar.gz: 067c83257f048b856b5ac4d0f5806e4e2ac90cc6cfa32315aa2e421df3df4f95ac2343b13d08dac02f18a4a2d17c28d263934d2921e489a69adc8d550ea07a5a
|
data/lib/raykit/git/directory.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
2
|
module Raykit
|
4
3
|
module Git
|
5
4
|
# Functionality to manage a local clone of a git repository
|
@@ -181,15 +180,6 @@ module Raykit
|
|
181
180
|
end
|
182
181
|
end
|
183
182
|
end
|
184
|
-
|
185
|
-
def backup
|
186
|
-
if ENV["GIT_BACKUP_DIR"] && !ENV["GIT_BACKUP_DIR"].empty?
|
187
|
-
puts "Backing up #{GIT_DIRECTORY.repository.url}"
|
188
|
-
Raykit::Git::Repository::backup GIT_DIRECTORY.repository.url, "#{ENV["GIT_BACKUP_DIR"]}/#{GIT_DIRECTORY.repository.relative_path}"
|
189
|
-
else
|
190
|
-
puts "Environment variable GIT_BACKUP_DIR is not set"
|
191
|
-
end
|
192
|
-
end
|
193
183
|
end
|
194
184
|
end
|
195
185
|
end
|
data/lib/raykit.rb
CHANGED
@@ -16,6 +16,15 @@ SECRETS = Raykit::Secrets.new
|
|
16
16
|
REPOSITORIES = Raykit::Git::Repositories.new("#{Raykit::Environment.get_dev_dir("log")}/Raykit.Git.Repositories.json")
|
17
17
|
GIT_DIRECTORY = Raykit::Git::Directory.new(Rake.application.original_dir)
|
18
18
|
|
19
|
+
def backup_git_directory
|
20
|
+
if ENV["GIT_BACKUP_DIR"] && !ENV["GIT_BACKUP_DIR"].empty?
|
21
|
+
puts "Backing up #{GIT_DIRECTORY.repository.url}"
|
22
|
+
Raykit::Git::Repository::backup GIT_DIRECTORY.repository.url, "#{ENV["GIT_BACKUP_DIR"]}/#{GIT_DIRECTORY.repository.relative_path}"
|
23
|
+
else
|
24
|
+
puts "Environment variable GIT_BACKUP_DIR is not set"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
19
28
|
NUGET_DIR = Raykit::Environment::get_dev_dir("nuget")
|
20
29
|
PUBLISH_DIR = Raykit::Environment::get_dev_dir("publish")
|
21
30
|
|