solokit 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chef.rb +5 -4
- data/lib/solokit/version.rb +1 -1
- metadata +3 -3
data/lib/chef.rb
CHANGED
@@ -19,11 +19,12 @@ module Solokit
|
|
19
19
|
@ssh.run("rm -rf #{root}etc/chef", false) &&
|
20
20
|
upload_files("#{solokit_path}/cookbooks/upstream/", "#{root}var/chef-solo/upstream-cookbooks") &&
|
21
21
|
upload_files("#{solokit_path}/cookbooks/site/", "#{root}var/chef-solo/site-cookbooks") &&
|
22
|
-
upload_files("cookbooks/upstream
|
23
|
-
upload_files("cookbooks/site
|
22
|
+
upload_files("cookbooks/upstream/*", "#{root}var/chef-solo/upstream-cookbooks") &&
|
23
|
+
upload_files("cookbooks/site/*", "#{root}var/chef-solo/site-cookbooks") &&
|
24
24
|
upload_files("envs/#{@env}/cookbooks/*", "#{root}var/chef-solo/site-cookbooks") &&
|
25
|
+
upload_files("#{solokit_path}/chef", "#{root}etc/chef") &&
|
25
26
|
upload_files("chef/*", "#{root}etc/chef") &&
|
26
|
-
upload_files("envs/#{@env}/chef
|
27
|
+
upload_files("envs/#{@env}/chef/*", "#{root}etc/chef")
|
27
28
|
end
|
28
29
|
|
29
30
|
def run(debug = false, root = "/")
|
@@ -49,7 +50,7 @@ module Solokit
|
|
49
50
|
end
|
50
51
|
|
51
52
|
def upload_files(from, to)
|
52
|
-
return true unless File.exists?(from)
|
53
|
+
return true unless File.exists?(from.gsub(/\*/, ''))
|
53
54
|
@ssh.run("mkdir -p #{to}") && @ssh.rsync(from, to, true)
|
54
55
|
end
|
55
56
|
|
data/lib/solokit/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solokit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Joakim Kolsj\xC3\xB6"
|