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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9431aaf83f89b8e1e019c4a6ebf2081c9787c083135e058c49ce7dc3d7846aa
4
- data.tar.gz: 65cc1fe2b289a56a0d950643b6991f614029729599d745214d9d8e07e4c2aa01
3
+ metadata.gz: 180ac511defd4161c81482e51b1f60d6e8abe6ea9f0a7535bbde37111599c850
4
+ data.tar.gz: c981a98425de47ff17049e32ea51c914c6dd89d72a199a685955baeb973186ca
5
5
  SHA512:
6
- metadata.gz: 070315a60eb32a9d5c63944f2d21384a0c85fd011961a0aec2abf693fddd9f038f144e2ff6af0cede5ca825cdbe8058af508c0443043152be3dc4c7980330320
7
- data.tar.gz: 0fae1b613e39beb2411b9dd7c99050650c914a97bc3b17faf8e2b3d0d5b53517803c30cce38cb8dd679583a10b8e1cea407c5d59db31756b5e69b93763cedfdb
6
+ metadata.gz: f2f214454f5963db6597a9cddbeecb52baee07c6f5263c40abf76ec637737cf1ca37d8a3a8fccc1bc21452cef3452cb9487acb2ecc594a0b7e71f216d1f9e269
7
+ data.tar.gz: 7219ca94d94eff2cd389c52b9f59d691e04d0f541f36cc6585459333c8d3d4535eed9b222ef79f029394e2f4bd39b72403fed34bcfbb6614363906666975914d
@@ -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
@@ -37,4 +37,8 @@ if defined?(RAYKIT_GLOBALS)
37
37
  def show_value(name, value)
38
38
  Raykit::Log.show_value(name, value)
39
39
  end
40
+
41
+ def copy_file_to_dir(file, dir)
42
+ Raykit::FileSystem::copy_file_to_dir(file, dir)
43
+ end
40
44
  end
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.363
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-13 00:00:00.000000000 Z
11
+ date: 2022-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler