vagrant_bootstrap 0.2.4 → 0.3.0

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.
@@ -0,0 +1,16 @@
1
+ require 'optparse'
2
+ require 'vagrant'
3
+ require 'vagrant_bootstrap/tap_bridge'
4
+
5
+ module VagrantBootstrap
6
+ module Commands
7
+ class Tap < Vagrant::Command::Base
8
+ def execute
9
+ opts = OptionParser.new do |o|
10
+ o.banner = 'Usage: vagrant tap'
11
+ end
12
+ VagrantBootstrap::TapBridge.new
13
+ end
14
+ end
15
+ end
16
+ end
@@ -20,6 +20,7 @@ module VagrantBootstrap
20
20
 
21
21
  def check_for_bins
22
22
  %w[brctl ip grep].each do |bin|
23
+ `which #{bin}`
23
24
  unless $?.exitstatus == 0
24
25
  STDERR.puts "Required bin #{bin} not found in PATH. Install it or fix your PATH and try again."
25
26
  exit false
@@ -1,3 +1,3 @@
1
1
  module VagrantBootstrap
2
- VERSION = "0.2.4"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -1,5 +1,6 @@
1
1
  require 'vagrant'
2
2
  require 'vagrant_bootstrap/commands/bootstrap'
3
+ require 'vagrant_bootstrap/commands/tap'
3
4
  require 'vagrant_bootstrap/action/destroy'
4
5
  require 'pathname'
5
6
 
@@ -21,6 +22,7 @@ module Vagrant
21
22
  end
22
23
 
23
24
  Vagrant.commands.register(:bootstrap) { VagrantBootstrap::Commands::Bootstrap }
25
+ Vagrant.commands.register(:tap) { VagrantBootstrap::Commands::Tap }
24
26
 
25
27
  Vagrant.actions[:destroy].insert_after(
26
28
  Vagrant::Action::VM::Destroy,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
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: 2012-08-30 00:00:00.000000000 Z
12
+ date: 2012-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: vagrant
@@ -59,6 +59,7 @@ files:
59
59
  - lib/vagrant_bootstrap/action/destroy.rb
60
60
  - lib/vagrant_bootstrap/bootstrap.rb
61
61
  - lib/vagrant_bootstrap/commands/bootstrap.rb
62
+ - lib/vagrant_bootstrap/commands/tap.rb
62
63
  - lib/vagrant_bootstrap/tap_bridge.rb
63
64
  - lib/vagrant_bootstrap/version.rb
64
65
  - lib/vagrant_init.rb