kitchenplan 2.1.17 → 2.1.18

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kitchenplan/cli.rb +4 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca95e10b1683c13bfb0d0d657df2f1511e1ca229
4
- data.tar.gz: 7181e239dd59ee7aa0dbd1fe58d6900cdb648f5c
3
+ metadata.gz: ad3814d2e859b2941fc01b4eb9cc060125991e24
4
+ data.tar.gz: eb27d93b2871fa2e97a95d6b94bbb0c0f89170f8
5
5
  SHA512:
6
- metadata.gz: ada6b96f543516c6c233b485181c4ebd4fb07a9b8d741266c04d1fba8393387da2b1a0e294e8ad94f9f6d84a0ac66f0d0c8c26389f9663d7de8ebaae7d5e9ef4
7
- data.tar.gz: 2b2e37c37cd5c0ea57f3e5e45b4dc167b5c723f0ff118b6a62aa3dd12a9138baa90b8f3c0f7767b556d0a6d37854f0a52113e7c66acf11b33127c4d993190acb
6
+ metadata.gz: f51a8962d6d8b6aa164984ea5328a18f02eff0f2c6ca0082865ff3f4ce67e3e78e7a7a924e7f18e6107987bd6c7278d06f4e3bd708cc113c290012b6ee15a583
7
+ data.tar.gz: 48a13a87caf6ba612d993fa7a155ea59e856dc2d8bd2b5858ad8196288274547aa12094fb63cfd068d9e1bf40ee490e871b5ce2531965e840ba99ce06b56657b
@@ -55,18 +55,17 @@ module Kitchenplan
55
55
  LONGDESC
56
56
  def provision(targetdir='/opt')
57
57
  logo
58
- inside("#{targetdir}/kitchenplan") do
59
- pid = Process.fork do
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchenplan
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.17
4
+ version: 2.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roderik van der Veer