bib-vagrant 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bib-vagrant.gemspec +2 -1
- data/lib/bib/vagrant/config.rb +6 -3
- data/lib/bib/vagrant/version.rb +1 -1
- data/test/config_test.rb +1 -1
- metadata +18 -1
data/bib-vagrant.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'bib/vagrant/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "bib-vagrant"
|
8
8
|
spec.version = Bib::Vagrant::VERSION
|
9
|
-
spec.authors = ["till"]
|
9
|
+
spec.authors = ["till", "fh"]
|
10
10
|
spec.email = ["till@php.net"]
|
11
11
|
spec.description = "A rubygem to centralize configuration and setup in every project's Vagrantfile"
|
12
12
|
spec.summary = "Centralize configuration and setup"
|
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency 'thor', '>= 0.18.1'
|
22
22
|
spec.add_dependency 'colored', '>= 1.2'
|
23
|
+
spec.add_dependency 'json'
|
23
24
|
|
24
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
26
|
spec.add_development_dependency "rake"
|
data/lib/bib/vagrant/config.rb
CHANGED
@@ -44,10 +44,13 @@ module Bib
|
|
44
44
|
|
45
45
|
errors = []
|
46
46
|
log_level = ['debug', 'info', 'warn', 'error', 'fatal']
|
47
|
+
bool = [TrueClass, FalseClass]
|
47
48
|
|
48
|
-
|
49
|
-
|
50
|
-
errors << "
|
49
|
+
cookbook_path = File.expand_path(config['cookbook_path'])
|
50
|
+
|
51
|
+
errors << "nfs: must be a boolean" unless bool.include?(config['nfs'].class)
|
52
|
+
errors << "gui: must be a boolean" unless bool.include?(config['gui'].class)
|
53
|
+
errors << "cookbook_path: does not exist" unless File.directory?(cookbook_path)
|
51
54
|
errors << "chef_log_level: must be one of #{log_level.join}" unless log_level.include?(config['chef_log_level'])
|
52
55
|
|
53
56
|
if !config['additional_json'].empty?
|
data/lib/bib/vagrant/version.rb
CHANGED
data/test/config_test.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bib-vagrant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- till
|
9
|
+
- fh
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
@@ -43,6 +44,22 @@ dependencies:
|
|
43
44
|
- - ! '>='
|
44
45
|
- !ruby/object:Gem::Version
|
45
46
|
version: '1.2'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: json
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
46
63
|
- !ruby/object:Gem::Dependency
|
47
64
|
name: bundler
|
48
65
|
requirement: !ruby/object:Gem::Requirement
|