kitchenplan 2.1.17 → 2.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchenplan/cli.rb +4 -5
- 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: ad3814d2e859b2941fc01b4eb9cc060125991e24
|
4
|
+
data.tar.gz: eb27d93b2871fa2e97a95d6b94bbb0c0f89170f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f51a8962d6d8b6aa164984ea5328a18f02eff0f2c6ca0082865ff3f4ce67e3e78e7a7a924e7f18e6107987bd6c7278d06f4e3bd708cc113c290012b6ee15a583
|
7
|
+
data.tar.gz: 48a13a87caf6ba612d993fa7a155ea59e856dc2d8bd2b5858ad8196288274547aa12094fb63cfd068d9e1bf40ee490e871b5ce2531965e840ba99ce06b56657b
|
data/lib/kitchenplan/cli.rb
CHANGED
@@ -55,18 +55,17 @@ module Kitchenplan
|
|
55
55
|
LONGDESC
|
56
56
|
def provision(targetdir='/opt')
|
57
57
|
logo
|
58
|
-
|
59
|
-
|
60
|
-
dorun "while true; do sudo -n true; sleep 60; kill -0 \"$$\" || exit; done 2>/dev/null"
|
61
|
-
end
|
62
|
-
Process.detach pid
|
58
|
+
pid = Process.fork do
|
59
|
+
dorun "while true; do sudo -n true; sleep 60; kill -0 \"$$\" || exit; done 2>/dev/null"
|
63
60
|
end
|
61
|
+
Process.detach pid
|
64
62
|
prepare_folders(targetdir)
|
65
63
|
install_bundler(targetdir)
|
66
64
|
recipes = parse_config(targetdir)
|
67
65
|
fetch_cookbooks(targetdir, options[:debug]) unless options['no-fetch']
|
68
66
|
run_chef(targetdir, (options[:recipes] ? options[:recipes] : recipes), options[:solorb], options[:debug])
|
69
67
|
cleanup(targetdir, options[:debug])
|
68
|
+
Process.kill(9, pid)
|
70
69
|
print_notice('Installation complete!')
|
71
70
|
end
|
72
71
|
|