raykit 0.0.363 → 0.0.366
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/filesystem.rb +10 -0
- data/lib/raykit.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 180ac511defd4161c81482e51b1f60d6e8abe6ea9f0a7535bbde37111599c850
|
4
|
+
data.tar.gz: c981a98425de47ff17049e32ea51c914c6dd89d72a199a685955baeb973186ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2f214454f5963db6597a9cddbeecb52baee07c6f5263c40abf76ec637737cf1ca37d8a3a8fccc1bc21452cef3452cb9487acb2ecc594a0b7e71f216d1f9e269
|
7
|
+
data.tar.gz: 7219ca94d94eff2cd389c52b9f59d691e04d0f541f36cc6585459333c8d3d4535eed9b222ef79f029394e2f4bd39b72403fed34bcfbb6614363906666975914d
|
data/lib/raykit/filesystem.rb
CHANGED
@@ -10,5 +10,15 @@ module Raykit
|
|
10
10
|
}
|
11
11
|
end
|
12
12
|
end
|
13
|
+
|
14
|
+
def self.Filcopy_file_to_dir(file, dir)
|
15
|
+
dest = "#{dir}/#{File.basename(file)}"
|
16
|
+
if (File.exists?(dest))
|
17
|
+
return "#{dest} already exists"
|
18
|
+
else
|
19
|
+
FileUtils.cp(file, dest)
|
20
|
+
return "#{dest} now exists"
|
21
|
+
end
|
22
|
+
end
|
13
23
|
end
|
14
24
|
end
|
data/lib/raykit.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raykit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.366
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|