gaptool-client 0.7.6 → 0.7.7
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/VERSION +1 -1
- data/lib/gaptool-client.rb +2 -8
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2855997549a7232a5365726b964614bc4c536382
|
|
4
|
+
data.tar.gz: 1ff4ccfa597d7cf6253be94302a66c6389aff74d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89b5024875e799791c6acb3dc067f7fcf23671285cec497dbe4afa3c8cade2da86e5566cf94c4cc599fab2f6c0c609be389c5a0f6ab8984ba74cc4818485e7ea
|
|
7
|
+
data.tar.gz: 3b5e0217da4550eeba509401e4084ed1287736141b0e8c83f954f883c270502f25f3aed6ebfc08cdc3391a2d65613fa5fee11be0cc839fa6bdcebf8c9750d392
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.7.
|
|
1
|
+
0.7.7
|
data/lib/gaptool-client.rb
CHANGED
|
@@ -313,10 +313,7 @@ module Gaptool
|
|
|
313
313
|
git = "git checkout -f #{chef_branch}; git fetch --all; git reset --hard origin/#{chef_branch}"
|
|
314
314
|
end
|
|
315
315
|
commands = [
|
|
316
|
-
"cd ~admin/ops; #{git} "
|
|
317
|
-
"echo '#{json.to_json}' > ~admin/solo.json",
|
|
318
|
-
"sudo chef-solo -c ~admin/ops/cookbooks/solo.rb -j ~admin/solo.json -E #{environment}",
|
|
319
|
-
'rm -f ~admin/solo.json'
|
|
316
|
+
"cd ~admin/ops; #{git} && echo '#{json.to_json}' > ~admin/solo.json && sudo chef-solo -c ~admin/ops/cookbooks/solo.rb -j ~admin/solo.json -E #{environment} && rm -f ~admin/solo.json"
|
|
320
317
|
]
|
|
321
318
|
sshcmd(node, commands)
|
|
322
319
|
end
|
|
@@ -407,10 +404,7 @@ module Gaptool
|
|
|
407
404
|
}
|
|
408
405
|
}.merge(attrs).to_json
|
|
409
406
|
commands = [
|
|
410
|
-
"cd ~admin/ops; git pull"
|
|
411
|
-
"echo '#{json}' > ~admin/solo.json",
|
|
412
|
-
"sudo chef-solo -c ~admin/ops/cookbooks/solo.rb -j ~admin/solo.json -E #{environment}",
|
|
413
|
-
'rm -f ~admin/solo.json'
|
|
407
|
+
"cd ~admin/ops; git pull && echo '#{json}' > ~admin/solo.json && sudo chef-solo -c ~admin/ops/cookbooks/solo.rb -j ~admin/solo.json -E #{environment} && rm -f ~admin/solo.json"
|
|
414
408
|
]
|
|
415
409
|
sshcmd(node, commands)
|
|
416
410
|
end
|