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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/kubs_cli/file_helper.rb +6 -6
- data/lib/kubs_cli/pull.rb +3 -2
- data/lib/kubs_cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cac3f40b979f153ce91e87ac12a055d8eeb15bd13344546e07c0d4110b586b14
|
4
|
+
data.tar.gz: 00c41dd2876ffd9d94cd6e249562a385d5f4c7cfeedbb6886c04598edcfc5dad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bd797e6e5988ca8c0a7195f3ed6626250b33e8c2885d698f25a35419f85259f7dcb04d2ef05854b1d063473266dc1f201ca3aab8741453ebc14c637aed91b3f
|
7
|
+
data.tar.gz: 359df3196eb41346490e2baec241278502abe4c505ee77186814f0f46bb02a22c2b9f8f05677b70cbbe7eb56da7502be95532478e5305d79d623e92a6cc2f964
|
data/Gemfile.lock
CHANGED
data/lib/kubs_cli/file_helper.rb
CHANGED
@@ -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
|
-
|
18
|
-
return
|
17
|
+
FileUtils.mkdir_p(to_dir) unless Dir.exist?(to_dir)
|
18
|
+
return FileUtils.cp(from, to) unless File.directory?(from)
|
19
19
|
|
20
|
-
|
20
|
+
FileUtils.mkdir_p(to)
|
21
21
|
|
22
22
|
Dir["#{from}/*"].each do |dir|
|
23
|
-
|
23
|
+
FileUtils.cp_r(dir, to) # next if File.directory?(dir)
|
24
24
|
|
25
|
-
#
|
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|
|
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
|
-
|
41
|
+
FileUtils.cp_r(o_file, n_file)
|
41
42
|
end
|
42
43
|
|
43
44
|
end
|
44
45
|
else
|
45
|
-
|
46
|
+
FileUtils.cp(orig_file, new_file)
|
46
47
|
end
|
47
48
|
end
|
48
49
|
|
data/lib/kubs_cli/version.rb
CHANGED
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.
|
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-
|
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.
|
181
|
+
rubygems_version: 3.1.6
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Konnor's Ubuntu Based Setup & CLI
|