vagrant-guests-openbsd 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -8,19 +8,7 @@ This plugins allows you to run OpenBSD under vagrant until Vagrant merges this c
8
8
 
9
9
  ## Installation
10
10
 
11
- Add this line to your application's Gemfile:
12
-
13
- gem 'vagrant-guests-openbsd', :git => 'git://github.com/nabeken/vagrant-guests-openbsd'
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- You should disable build-in OpenBSD plugin.
20
-
21
- For example, in Mac OS X:
22
-
23
- $ sudo chmod 0000 /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.2/plugins/guests/openbsd
11
+ $ vagrant plugin install vagrant-guests-openbsd
24
12
 
25
13
  ## Usage
26
14
 
@@ -28,7 +16,7 @@ Add this line to your Vagrantfile:
28
16
 
29
17
  Vagrant.require_plugin "vagrant-guests-openbsd"
30
18
  Vagrant.configure("2") do |config|
31
- config.vm.guest = :openbsd
19
+ config.vm.guest = :openbsd_v2
32
20
 
33
21
  # If you want hostonly network
34
22
  config.vm.network :private_network, ip: "192.168.67.10", netmask: "255.255.255.0"
@@ -38,3 +26,5 @@ Add this line to your Vagrantfile:
38
26
  # other config
39
27
  # ...
40
28
  end
29
+
30
+ You shoud use ':openbsd\_v2' for 'config.vm.guest' to avoid name conflict with build-in plugin.
@@ -15,6 +15,16 @@ module VagrantPlugins
15
15
  require_relative "guest"
16
16
  Guest
17
17
  end
18
+
19
+ config("openbsd_v2") do
20
+ require_relative "config"
21
+ Config
22
+ end
23
+
24
+ guest("openbsd_v2") do
25
+ require_relative "guest"
26
+ Guest
27
+ end
18
28
  end
19
29
  end
20
30
  end
@@ -0,0 +1,13 @@
1
+ require 'vagrant-guests-openbsd/plugin'
2
+
3
+ describe VagrantPlugins::GuestOpenBSD::Plugin do
4
+ it "should be loaded with openbsd" do
5
+ described_class.guest[:openbsd].should == VagrantPlugins::GuestOpenBSD::Guest
6
+ described_class.components.configs[:top][:openbsd].should == VagrantPlugins::GuestOpenBSD::Config
7
+ end
8
+
9
+ it "should be loaded with openbsd_v2" do
10
+ described_class.guest[:openbsd_v2].should == VagrantPlugins::GuestOpenBSD::Guest
11
+ described_class.components.configs[:top][:openbsd_v2].should == VagrantPlugins::GuestOpenBSD::Config
12
+ end
13
+ end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "vagrant-guests-openbsd"
7
- spec.version = "0.0.1"
7
+ spec.version = "0.0.2"
8
8
  spec.authors = ["TANABE Ken-ichi"]
9
9
  spec.email = ["nabeken@tknetworks.org"]
10
10
  spec.description = %q{Vagrant Guests Plugin for OpenBSD}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-guests-openbsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-24 00:00:00.000000000 Z
12
+ date: 2013-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -110,6 +110,7 @@ files:
110
110
  - lib/vagrant-guests-openbsd/guest.rb
111
111
  - lib/vagrant-guests-openbsd/plugin.rb
112
112
  - spec/guest_spec.rb
113
+ - spec/plugin_spec.rb
113
114
  - vagrant-guests-openbsd.gemspec
114
115
  homepage: https://github.com/nabeken/vagrant-guests-openbsd
115
116
  licenses:
@@ -126,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
127
  version: '0'
127
128
  segments:
128
129
  - 0
129
- hash: 2395952838110609467
130
+ hash: 4562814454344751602
130
131
  required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  none: false
132
133
  requirements:
@@ -135,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
136
  version: '0'
136
137
  segments:
137
138
  - 0
138
- hash: 2395952838110609467
139
+ hash: 4562814454344751602
139
140
  requirements: []
140
141
  rubyforge_project:
141
142
  rubygems_version: 1.8.23
@@ -144,3 +145,4 @@ specification_version: 3
144
145
  summary: This plugins allows you to run OpenBSD under vagrant
145
146
  test_files:
146
147
  - spec/guest_spec.rb
148
+ - spec/plugin_spec.rb