Skip to content
Browse files

first attempt to create vagrant plugin + gem

  • Loading branch information...
1 parent 12ec8bd commit e86ac31000b085299cc4fb0bec50fd37dadb611d @jedi4ever committed Feb 2, 2011
Showing with 105 additions and 0 deletions.
  1. +8 −0 Gemfile
  2. +52 −0 Gemfile.lock
  3. +1 −0 lib/vagrant_init.rb
  4. +13 −0 lib/veewee.rb
  5. +3 −0 lib/veewee/version.rb
  6. +25 −0 veewee.gemspec
  7. +3 −0 veewee.rvm
View
8 Gemfile
@@ -0,0 +1,8 @@
+source "http://rubygems.org"
+
+gem "veewee", :path => "."
+
+gem 'net-ssh'
+gem 'virtualbox'
+gem 'popen4'
+gem 'vagrant'
View
52 Gemfile.lock
@@ -0,0 +1,52 @@
+PATH
+ remote: .
+ specs:
+ veewee (0.1.0)
+ net-ssh (~> 2.1.0)
+ popen4 (~> 0.1.2)
+ vagrant (~> 0.7.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ Platform (0.4.0)
+ abstract (1.0.0)
+ archive-tar-minitar (0.5.2)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ ffi (0.6.3)
+ rake (>= 0.8.7)
+ i18n (0.5.0)
+ json (1.4.6)
+ mario (0.0.6)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-ssh (2.1.0)
+ open4 (1.0.1)
+ popen4 (0.1.2)
+ Platform (>= 0.4.0)
+ open4 (>= 0.4.0)
+ rake (0.8.7)
+ thor (0.14.6)
+ vagrant (0.7.1)
+ archive-tar-minitar (= 0.5.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.5.0)
+ json (~> 1.4.6)
+ mario (~> 0.0.6)
+ net-scp (~> 1.0.4)
+ net-ssh (~> 2.1.0)
+ thor (~> 0.14.6)
+ virtualbox (~> 0.8.3)
+ virtualbox (0.8.3)
+ ffi (~> 0.6.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ net-ssh
+ popen4
+ vagrant
+ veewee!
+ virtualbox
View
1 lib/vagrant_init.rb
@@ -0,0 +1 @@
+require 'veewee'
View
13 lib/veewee.rb
@@ -0,0 +1,13 @@
+class VeeweeCommand < Vagrant::Command::GroupBase
+ register "veewee", "creates boxes"
+
+ desc "hello", "Says hello"
+ def hello
+ puts "HELLO!"
+ end
+
+ desc "goodbye", "Says goodbye"
+ def goodbye
+ puts "GOODBYE!"
+ end
+end
View
3 lib/veewee/version.rb
@@ -0,0 +1,3 @@
+module Veewee
+ VERSION = "0.1.0"
+end
View
25 veewee.gemspec
@@ -0,0 +1,25 @@
+# -*- encoding: utf-8 -*-
+require File.expand_path("../lib/veewee/version", __FILE__)
+
+Gem::Specification.new do |s|
+ s.name = "veewee"
+ s.version = Veewee::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Patrick Debois", "Ringo De Smet"]
+ s.email = ["patrick.debois@jedi.be"]
+ s.homepage = "http://rubygems.org/gems/vagrant-rake"
+ s.summary = "A plugin to create boxes"
+ s.description = "A plugin to create boxes"
+
+ s.required_rubygems_version = ">= 1.3.6"
+ s.rubyforge_project = "veewee"
+
+ s.add_dependency "vagrant", "~> 0.7.0"
+ s.add_dependency "net-ssh", "~> 2.1.0"
+ s.add_dependency "popen4", "~> 0.1.2"
+
+ s.files = `git ls-files`.split("\n")
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
+ s.require_path = 'lib'
+end
+
View
3 veewee.rvm
@@ -0,0 +1,3 @@
+rvm gemset create veewee
+rvm gemset use veewee
+rvm gemset list

0 comments on commit e86ac31

Please sign in to comment.
Something went wrong with that request. Please try again.