dotfiles-cli 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: b3ea22885f165e6d43f7481bc93941f60c238a78
4
- data.tar.gz: 5feb18bcd0f07b7b775b4479f546ef668ac565f2
3
+ metadata.gz: 59a7025b40ba0a17d70eb78de89cb51848c27fe3
4
+ data.tar.gz: c37d6a369d90bfe00a974e09e7c48612dedb7487
5
5
  SHA512:
6
- metadata.gz: 50cea641d95c04be536e590787b0a6ff082940fef7719b91659e9d6282843052977824b388122b580370053e8f2ac6df0a3cd800e992ec2cac3ae5f59d6e7765
7
- data.tar.gz: e69fd108301dc648dc4c87b2fc36b6d0db39e21d9d8254ff8f8df7c56641badae43c48fcf7ec63e9a31fb37574758b66e53f34d7809cacf8a85d96165f8df24c
6
+ metadata.gz: 1f8769b002ec5d38c948fafb517843198baa1efd821a7fc1e05a8ddc2e72d22cf154e3a7b7b593d9c16bdcdd953665271e3ba8104fe0735c2136ad36d44ab1a5
7
+ data.tar.gz: 180e828ed4cd5758a4a7bf8e194b1554b09482d78f3879566b4099362bc4d6f0a51547b648adecad7d83dcfb67184a45d5864b2136347f2b58ffe7ffd320de1a
data/lib/dotfiles/core.rb CHANGED
@@ -125,12 +125,10 @@ module Core
125
125
  end
126
126
 
127
127
  def self.config(path)
128
- contents = FileSystem.dot(@@config)
128
+ contents = FileSystem.contents(@@config)
129
129
  path+='config/'
130
130
 
131
- for file in contents
132
- Sudo.copy(file, path)
133
- end
131
+ Sudo.copy(contents, path)
134
132
  end
135
133
 
136
134
  def self.tools(path)
@@ -138,7 +136,9 @@ module Core
138
136
  contents = FileSystem.rglob(@@root)
139
137
  path+='tools/'
140
138
 
141
- Sudo.copy(contents, path)
139
+ contents.each do |file|
140
+ Sudo.copy(file, path)
141
+ end
142
142
  end
143
143
 
144
144
  def self.etc(path)
@@ -18,11 +18,6 @@
18
18
  # Created on Monday, 9th July 2018 9:47:06 pm
19
19
 
20
20
  module FileSystem
21
-
22
- def self.dot(path)
23
- path+'.'
24
- end
25
-
26
21
  def self.contents(path)
27
22
  path+'*'
28
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotfiles-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - exstnce