kubs_cli 0.2.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c30d591c9deddfad16a1ea6cecd7bf4294905534af52c72b05242989b30ddb62
4
- data.tar.gz: 75eeec8cd86664fa180ffa97dcec773b288e4d872fbdb884c9a7891391468070
3
+ metadata.gz: cac3f40b979f153ce91e87ac12a055d8eeb15bd13344546e07c0d4110b586b14
4
+ data.tar.gz: 00c41dd2876ffd9d94cd6e249562a385d5f4c7cfeedbb6886c04598edcfc5dad
5
5
  SHA512:
6
- metadata.gz: d3d67b9d54eb52d0cb49aeea855a604c669843d4482913ecc129ab866927d7c3262a353e661204c0a87daad486ad3cb62ebc4335d148c728f5e98230ec35e715
7
- data.tar.gz: e65617ef648432b4b55b617473148115e889c3417b32b2609cc0c8327b3992e58719f6c0019a94cf67a83114e51a39f9b171f2f1089114253e970a41312dad14
6
+ metadata.gz: 3bd797e6e5988ca8c0a7195f3ed6626250b33e8c2885d698f25a35419f85259f7dcb04d2ef05854b1d063473266dc1f201ca3aab8741453ebc14c637aed91b3f
7
+ data.tar.gz: 359df3196eb41346490e2baec241278502abe4c505ee77186814f0f46bb02a22c2b9f8f05677b70cbbe7eb56da7502be95532478e5305d79d623e92a6cc2f964
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kubs_cli (0.2.1)
4
+ kubs_cli (0.2.2)
5
5
  rake (~> 13.0)
6
6
  thor (~> 0.20)
7
7
 
@@ -74,4 +74,4 @@ DEPENDENCIES
74
74
  yard (~> 0.9)
75
75
 
76
76
  BUNDLED WITH
77
- 2.2.22
77
+ 2.2.31
@@ -14,15 +14,15 @@ module KubsCLI
14
14
  return if file_does_not_exist(from)
15
15
 
16
16
  to_dir = File.dirname(File.expand_path(to))
17
- Rake.mkdir_p(to_dir) unless Dir.exist?(to_dir)
18
- return Rake.cp(from, to) unless File.directory?(from)
17
+ FileUtils.mkdir_p(to_dir) unless Dir.exist?(to_dir)
18
+ return FileUtils.cp(from, to) unless File.directory?(from)
19
19
 
20
- Rake.mkdir_p(to)
20
+ FileUtils.mkdir_p(to)
21
21
 
22
22
  Dir["#{from}/*"].each do |dir|
23
- Rake.cp_r(dir, to) # next if File.directory?(dir)
23
+ FileUtils.cp_r(dir, to) # next if File.directory?(dir)
24
24
 
25
- # Rake.cp(dir, to)
25
+ # FileUtils.cp(dir, to)
26
26
  end
27
27
  end
28
28
 
@@ -30,7 +30,7 @@ module KubsCLI
30
30
  # @param dirs [Array<String>] The names of the dirs to create
31
31
  # @return void
32
32
  def mkdirs(*dirs)
33
- dirs.flatten.each { |dir| Rake.mkdir_p(dir) unless Dir.exist?(dir) }
33
+ dirs.flatten.each { |dir| FileUtils.mkdir_p(dir) unless Dir.exist?(dir) }
34
34
  end
35
35
 
36
36
  # Loads a YAML file
data/lib/kubs_cli/pull.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  require 'rake'
3
+ require 'fileutils'
3
4
 
4
5
  module KubsCLI
5
6
  # Used to pull items into your config-files repo
@@ -37,12 +38,12 @@ module KubsCLI
37
38
  o_file = File.join(File.expand_path(orig_file), o_file)
38
39
  n_file = File.expand_path(new_file)
39
40
 
40
- Rake.cp_r(o_file, n_file)
41
+ FileUtils.cp_r(o_file, n_file)
41
42
  end
42
43
 
43
44
  end
44
45
  else
45
- Rake.cp(orig_file, new_file)
46
+ FileUtils.cp(orig_file, new_file)
46
47
  end
47
48
  end
48
49
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubsCLI
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubs_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - paramagicdev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-12 00:00:00.000000000 Z
11
+ date: 2022-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
- rubygems_version: 3.2.22
181
+ rubygems_version: 3.1.6
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Konnor's Ubuntu Based Setup & CLI