kitchenplan 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ab17c34e465430b822955f8d10df1baf0dbe443
4
- data.tar.gz: f5aeee65e69922c78c576fdc003e86b787dbfb26
3
+ metadata.gz: 45272d06331a4420f7df036e09fa2f6626867f90
4
+ data.tar.gz: de7f6c4078c608b2ca87ba8e87f011998496c56d
5
5
  SHA512:
6
- metadata.gz: 630477b5c771bcee822617d7e34e520244743887e1232e6a99298cd59ba2731757cbafda32b2e9f1feed79e7edfd0dda07ccf5faf959a7db051acf9ff0ed2e94
7
- data.tar.gz: 328a20e225235a41fe9bef8b10248bc8e70a4cedf50f349028e1efa0dd500ff0e819135658f03cb15dcf00fc841a555c7d28c1fa4729120d08a9ed801b841580
6
+ metadata.gz: 3f99898b77d4b046d81a456ecbbea5eaedd59bde67f7d9f4832b9c0a0282bfc5b4f0f7a3626c6dbcbba948ff13cafcd40984ad24edad29f353fbb5a8baaf8623
7
+ data.tar.gz: c596e4d3db9b64737c9a92ef62fceb4335ef733f2a88ff6c53393b9670583e815ee38ef73f474e63775972419a2377b0d5cf4ef92cb43aa97c6fe0a14da6f6c5
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Kitchenplan
1
+ # Kitchenplan [![Build Status](https://travis-ci.org/kitchenplan/kitchenplan.png?branch=master)](https://travis-ci.org/kitchenplan/kitchenplan)
2
2
 
3
3
  Kitchenplan is a small tool to fully automate the installation and configuration of an OSX workstation (or server for that matter) using Chef. But while doing so manually is not a trivial undertaking, Kitchenplan has abstracted away all the hard parts.
4
4
 
@@ -24,6 +24,7 @@ module Kitchenplan
24
24
  desc 'provision [<TARGET DIRECTORY>]', 'run Kitchenplan'
25
25
  def provision(targetdir='/opt')
26
26
  logo
27
+ prepare_folders(targetdir)
27
28
  install_bundler(targetdir)
28
29
  send_ping
29
30
  recipes = parse_config(targetdir)
@@ -163,9 +164,9 @@ module Kitchenplan
163
164
  print_failure('Install Xcode before continuing: https://developer.apple.com/xcode/') unless File.exists? '/usr/bin/cc'
164
165
  end
165
166
  dorun("curl \"#{dmg}\" -o \"clitools.dmg\"")
166
- tmpmount = dorun('/usr/bin/mktemp -d /tmp/clitools.XXXX', true)
167
+ tmpmount = dorun('/usr/bin/mktemp -d /tmp/clitools.XXXX', true).chomp
167
168
  dorun("hdiutil attach \"clitools.dmg\" -mountpoint \"#{tmpmount}\"")
168
- dorun("installer -pkg \"$(find #{tmpmount} -name '*.mpkg')\" -target /")
169
+ dorun("sudo installer -pkg \"$(find #{tmpmount} -name '*.mpkg')\" -target /")
169
170
  dorun("hdiutil detach \"#{tmpmount}\"")
170
171
  dorun("rm -rf \"#{tmpmount}\"")
171
172
  dorun("rm \"clitools.dmg\"")
@@ -224,4 +225,4 @@ module Kitchenplan
224
225
 
225
226
 
226
227
  end
227
- end
228
+ end
@@ -1,6 +1,6 @@
1
1
  require 'yaml'
2
2
  require 'etc'
3
- require 'ohai'
3
+ #require 'ohai'
4
4
  require 'erb'
5
5
  require 'deep_merge'
6
6
 
@@ -21,10 +21,11 @@ module Kitchenplan
21
21
  end
22
22
 
23
23
  def detect_platform
24
- ohai = Ohai::System.new
25
- ohai.require_plugin('os')
26
- ohai.require_plugin('platform')
27
- @platform = ohai[:platform_family]
24
+ #ohai = Ohai::System.new
25
+ #ohai.require_plugin('os')
26
+ #ohai.require_plugin('platform')
27
+ #@platform = ohai[:platform_family]
28
+ @platform = 'mac_os_x' # We only support osx at the moment, and it saves a large dependency
28
29
  end
29
30
 
30
31
  def parse_default_config
@@ -1,3 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "librarian-chef", "~> 0.0.2"
3
+ gem "librarian-chef", "~> 0.0.2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchenplan
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roderik van der Veer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-07 00:00:00.000000000 Z
11
+ date: 2014-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor