raykit 0.0.430 → 0.0.431
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 +13 -4
- 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: dae967b38af596d44f5c3d1165799a935ea374b346d9df9cd29a939061c5896b
|
4
|
+
data.tar.gz: '09ebc88a3852e78c7d5e7865c6f438c01f11b4171f255cc20ae75d4440b6ea64'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f439ee9911857a5d01ee352d96af4a9c0dc14e508a2b7aa487d07a5715018c49a1ee0ca7c8cb9f19c6e1ec4045f88f6fda6f67265243f5b4ddcd97dd34e4393
|
7
|
+
data.tar.gz: 2448751192c19383df0a89e081b7e75c87900218c0c2edf5417665b6f9dc0322112d08d412554505d8b7092e631717438c3e4468bb47212731c8e3928bcf0806
|
@@ -126,15 +126,24 @@ module Raykit
|
|
126
126
|
|
127
127
|
def clobber
|
128
128
|
["work", "clone", "make"].each { |d|
|
129
|
-
dir =
|
129
|
+
dir = get_dev_dir(d)
|
130
130
|
if (Dir.exists?(dir))
|
131
|
-
|
132
|
-
|
133
|
-
|
131
|
+
begin
|
132
|
+
puts " deleting #{dir}"
|
133
|
+
FileUtils.rm_rf(dir)
|
134
|
+
FileUtils.rm(dir) if (Dir.exists?(dir))
|
135
|
+
rescue
|
136
|
+
puts " problem while deleting #{dir}"
|
137
|
+
end
|
134
138
|
end
|
135
139
|
}
|
136
140
|
end
|
137
141
|
|
142
|
+
def pull
|
143
|
+
Raykit::Git::Repository::work_pull(url)
|
144
|
+
update_local_clone_directory
|
145
|
+
end
|
146
|
+
|
138
147
|
def self.work_pull(url)
|
139
148
|
repo = Raykit::Git::Repository.new(url)
|
140
149
|
work_dir = repo.get_dev_dir("work")
|