bib-vagrant 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDc0MzRhOTYzNGU2OTliYWE2Y2ZlMGMyNDFhZWIwOTMyZTFhMzRkNA==
5
+ data.tar.gz: !binary |-
6
+ MzY5N2VmMDU4NDFjOTZkZDc1ODQ2NmI1YjVkMmVhZWQzZTI2NThhNA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZjZlZWExZmIwOTA0Njg0M2Q0YTY2N2ZkZDUwNTZhZDUxMWYyNDg5YTBjMThm
10
+ Nzk3ZGE0YTBmMjJiNjk4ZGM4NDU4Nzk0NDMwNmRmMjYwNzcyMDczODMxNGYz
11
+ YjRhYTg1ODc3NGMxNTRiYWY1NjgyODFhODA2MDVmZmQ1OWZjNTY=
12
+ data.tar.gz: !binary |-
13
+ MTkzYTE3NmEyZTdhMWI1NzA0YjdmM2NmYWVhY2Q4NjM1ZTE3OGY1ZDA4ZWYx
14
+ NDI5NjM3MjMwOGJhOWRmOGZjYjk3MjllMDEyNWFjODVlMjk5OWFkYWU0YmU4
15
+ MGMwYTlkMDQ0YzBiYmYyYjlmNTY2MmU0Y2MyNDgyMTllZDRmYjA=
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,8 @@
1
+ # Contributing
2
+
3
+ 1. Fork it
4
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
5
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
6
+ 4. Push to the branch (`git push origin my-new-feature`)
7
+ 5. Create new Pull Request
8
+
data/README.md CHANGED
@@ -3,28 +3,94 @@
3
3
  [![Build Status](https://travis-ci.org/easybiblabs/bib-vagrant.png?branch=master)](https://travis-ci.org/easybiblabs/bib-vagrant)
4
4
  [![Coverage Status](https://coveralls.io/repos/easybiblabs/bib-vagrant/badge.png)](https://coveralls.io/r/easybiblabs/bib-vagrant)
5
5
 
6
+ This is a work in progress - and subject to [additions and changes](CONTRIBUTING.md).
7
+
8
+ ## Objective
9
+
10
+ 1. Remove developer-specific settings from a project's `Vagrantfile`.
11
+ 2. Streamline setup/onboarding.
12
+ 3. Avoid stale settings all around.
13
+
6
14
  ## Installation
7
15
 
8
- Add this line to your application's Gemfile:
16
+ Install the plugin:
9
17
 
10
- gem 'bib-vagrant'
18
+ $ vagrant plugin install bib-vagrant
19
+
20
+ Do not use this command in a directory with a Vagrantfile which requires the plugin. Vagrant does _always_ include the Vagrantfile, and therefore will fail before installation because of the missing plugin. Just ```cd``` somewhere else and retry the command, maybe from your homedir?
11
21
 
12
- And then execute:
22
+ ## Usage
23
+ ### Developer Settings
24
+ The config file with all developer specific settings is currently ```~/.config/easybib/vagrantdefault.yml```. If no such file exists, the plugin will create the file with default settings.
13
25
 
14
- $ bundle
26
+ The content of this file can be retrieved using the plugin as an array, the the Vagrantfile-Example below for usage.
15
27
 
16
- Or install it yourself as:
28
+ The current default settings and their respective usage in our Vagrantfiles are:
17
29
 
18
- $ gem install bib-vagrant
30
+ ```
19
31
 
20
- ## Usage
32
+ #Use filesystem shares over nfs
33
+ nfs: false
34
+
35
+ #Path to the cookbooks
36
+ cookbook_path: ~/Sites/easybib/cookbooks
37
+
38
+ #Chef Log Level
39
+ chef_log_level: debug
40
+
41
+ #Additional JSON to be merged in the Chef JSON
42
+ additional_json: ! '{}'
43
+
44
+ #Show Virtualbox GUI
45
+ gui: false
46
+ ```
47
+
48
+ Additional parameters can be added to the file and used in the Vagrantfile - but you then have to make sure to use sensible fallback defaults in your Vagrantfile, since not every developer might have this setting in the .yml.
49
+
50
+
51
+ ### Vagrantfile
21
52
 
22
- TODO: Write usage instructions here
53
+ In your `Vagrantfile`:
54
+
55
+ ```ruby
56
+ Vagrant.require_plugin 'bib-vagrant'
57
+
58
+ Vagrant.configure("2") do |config|
59
+ bibconfig = Bib::Vagrant::Config.new
60
+ vagrantconfig = bibconfig.get
61
+
62
+ config.vm.define :db do |web_config|
63
+
64
+ #...
65
+
66
+ web_config.vm.provider :virtualbox do |vb|
67
+ vb.gui = vagrantconfig["gui"]
68
+ #...
69
+ end
70
+
71
+ web_config.vm.synced_folder "./../", "/vagrant_data", :owner => "vagrant", :nfs => vagrantconfig["nfs"]
72
+
73
+ web_config.vm.provision :chef_solo do |chef|
74
+ chef.cookbooks_path = vagrantconfig["cookbook_path"]
75
+ chef.add_recipe "something::here"
76
+ chef.log_level = vagrantconfig["chef_log_level"]
77
+ end
78
+
79
+ end
80
+ ```
81
+
82
+ The configuration is located in `~/.config/easybib/vagrantdefault.yml`:
83
+
84
+ ```yaml
85
+ ---
86
+ nfs: false
87
+ cookbook_path: ~/Documents/workspaces/easybib-cookbooks
88
+ chef_log_level: debug
89
+ additional_json: ! '{}'
90
+ gui: true
91
+ ```
23
92
 
24
93
  ## Contributing
25
94
 
26
- 1. Fork it
27
- 2. Create your feature branch (`git checkout -b my-new-feature`)
28
- 3. Commit your changes (`git commit -am 'Add some feature'`)
29
- 4. Push to the branch (`git push origin my-new-feature`)
30
- 5. Create new Pull Request
95
+ See [Contributing](CONTRIBUTING.md)
96
+
@@ -16,7 +16,6 @@ module VagrantPlugins
16
16
  module Vagrant
17
17
  class Plugin < ::Vagrant.plugin("2")
18
18
 
19
- puts "MEH"
20
19
  name "bib-vagrant"
21
20
  description <<-DESC
22
21
  This is a fake plugin to get bib::vagrant into vagrant
@@ -1,5 +1,5 @@
1
1
  module Bib
2
2
  module Vagrant
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bib-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - tillk
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-12-02 00:00:00.000000000 Z
12
+ date: 2014-05-12 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: thor
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ! '>='
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ! '>='
29
26
  - !ruby/object:Gem::Version
@@ -31,7 +28,6 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: colored
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ! '>='
37
33
  - !ruby/object:Gem::Version
@@ -39,7 +35,6 @@ dependencies:
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
39
  - - ! '>='
45
40
  - !ruby/object:Gem::Version
@@ -47,7 +42,6 @@ dependencies:
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: json
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - ! '>='
53
47
  - !ruby/object:Gem::Version
@@ -55,7 +49,6 @@ dependencies:
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - ! '>='
61
54
  - !ruby/object:Gem::Version
@@ -63,7 +56,6 @@ dependencies:
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: bundler
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
60
  - - ~>
69
61
  - !ruby/object:Gem::Version
@@ -71,7 +63,6 @@ dependencies:
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
67
  - - ~>
77
68
  - !ruby/object:Gem::Version
@@ -79,7 +70,6 @@ dependencies:
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: rake
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
74
  - - ! '>='
85
75
  - !ruby/object:Gem::Version
@@ -87,7 +77,6 @@ dependencies:
87
77
  type: :development
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
81
  - - ! '>='
93
82
  - !ruby/object:Gem::Version
@@ -95,7 +84,6 @@ dependencies:
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: minitest
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
88
  - - ~>
101
89
  - !ruby/object:Gem::Version
@@ -103,7 +91,6 @@ dependencies:
103
91
  type: :development
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
95
  - - ~>
109
96
  - !ruby/object:Gem::Version
@@ -111,7 +98,6 @@ dependencies:
111
98
  - !ruby/object:Gem::Dependency
112
99
  name: coveralls
113
100
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
101
  requirements:
116
102
  - - ! '>='
117
103
  - !ruby/object:Gem::Version
@@ -119,7 +105,6 @@ dependencies:
119
105
  type: :development
120
106
  prerelease: false
121
107
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
108
  requirements:
124
109
  - - ! '>='
125
110
  - !ruby/object:Gem::Version
@@ -134,6 +119,7 @@ extra_rdoc_files: []
134
119
  files:
135
120
  - .gitignore
136
121
  - .travis.yml
122
+ - CONTRIBUTING.md
137
123
  - Gemfile
138
124
  - LICENSE.txt
139
125
  - README.md
@@ -150,27 +136,26 @@ files:
150
136
  homepage: https://github.com/easybiblabs/bib-vagrant
151
137
  licenses:
152
138
  - New BSD License
139
+ metadata: {}
153
140
  post_install_message:
154
141
  rdoc_options: []
155
142
  require_paths:
156
143
  - lib
157
144
  required_ruby_version: !ruby/object:Gem::Requirement
158
- none: false
159
145
  requirements:
160
146
  - - ! '>='
161
147
  - !ruby/object:Gem::Version
162
148
  version: '0'
163
149
  required_rubygems_version: !ruby/object:Gem::Requirement
164
- none: false
165
150
  requirements:
166
151
  - - ! '>='
167
152
  - !ruby/object:Gem::Version
168
153
  version: '0'
169
154
  requirements: []
170
155
  rubyforge_project:
171
- rubygems_version: 1.8.23
156
+ rubygems_version: 2.2.2
172
157
  signing_key:
173
- specification_version: 3
158
+ specification_version: 4
174
159
  summary: Centralize configuration and setup
175
160
  test_files:
176
161
  - test/config_test.rb