Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
empty vagrant plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuzmin committed Jan 5, 2015
1 parent 4321d71 commit 2d81e3a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
9 changes: 8 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in vagrant-guestip.gemspec
gemspec

group :development do
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git'
end

group :plugins do
gem 'vagrant-guestip', path: '.'
end
9 changes: 9 additions & 0 deletions lib/command.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module VagrantPlugins
module GuestIP
class Command < Vagrant.plugin(2, :command)
def execute
puts "Hello!"
end
end
end
end
13 changes: 9 additions & 4 deletions lib/vagrant-guestip.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
require "vagrant/guestip/version"

module Vagrant
module VagrantPlugins
module GuestIP
# Your code goes here...
class Plugin < Vagrant.plugin(2)
name 'guestip'

command('ip', primary: false) do
require_relative 'command'
Command
end
end
end
end

0 comments on commit 2d81e3a

Please sign in to comment.