Skip to content

Commit

Permalink
made ostypes work
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi4ever committed Feb 2, 2011
1 parent 742eae4 commit e231bf2
Show file tree
Hide file tree
Showing 5 changed files with 405 additions and 17 deletions.
15 changes: 2 additions & 13 deletions lib/veewee.rb
@@ -1,13 +1,2 @@
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
require 'vagrant'
require 'veewee/command'
74 changes: 74 additions & 0 deletions lib/veewee/command.rb
@@ -0,0 +1,74 @@
require 'veewee/session'

#Setup some base variables to use
veewee_dir= File.dirname(__FILE__)
definition_dir= File.expand_path(File.join(veewee_dir, "definitions"))
lib_dir= File.expand_path(File.join(veewee_dir, "lib"))
box_dir= File.expand_path(File.join(veewee_dir, "boxes"))
template_dir=File.expand_path(File.join(veewee_dir, "templates"))
vbox_dir=File.expand_path(File.join(veewee_dir, "tmp"))
tmp_dir=File.expand_path(File.join(veewee_dir, "tmp"))
iso_dir=File.expand_path(File.join(veewee_dir, "iso"))

#needs to be moved to the config files to be allowed override
ENV['VBOX_USER_HOME']=vbox_dir

#Load Veewee::Session libraries
Dir.glob(File.join(lib_dir, '**','*.rb')).each {|f|
require f }

#Initialize
Veewee::Session.setenv({:veewee_dir => veewee_dir, :definition_dir => definition_dir,
:template_dir => template_dir, :iso_dir => iso_dir, :box_dir => box_dir, :tmp_dir => tmp_dir})


module Vagrant
module Command
class BoxCommand < Vagrant::Command::GroupBase
# Do not register anymore, as this registration is already done in Vagrant core
# Since Ruby classes are 'open', we are just adding subcommands to the 'box' command

desc "init", "Initialize the current directory for base box building."
def init
puts "Creating base set of subfolders for box building"
end

desc "templates", "List the currently available box templates"
def templates
puts "Templates:"
end

desc "define BOXNAME TEMPLATE", "Define a new box starting from a template"
def define(boxname, template)
puts "Defining new box ${boxname}, starting from ${template}"
end

desc "undefine BOXNAME", "Undefine the box with name BOXNAME"
def undefine(boxname)
puts "Undefining box ${boxname}"
end

desc "definitions", "List the current set of box definitions"
def definitions
puts "Definitions:"
end

desc "build BOXNAME", "Build the box BOXNAME"
def build(boxname)
puts "Building box ${boxname}"
end

desc "ostypes", "List the available Operating System types"
def ostypes
puts "Operating System types:"
Veewee::Session.list_ostypes
end

desc "clean", "Clean all unfinished builds"
def clean
puts "Cleaning all unfinished builds"
end

end
end
end
30 changes: 30 additions & 0 deletions lib/veewee/tmp/compreg.dat
@@ -0,0 +1,30 @@
Generated File. Do not edit.

[HEADER]
Version,0,5

[COMPONENTS]
rel:VBoxSVCM.dylib,1295368597000
rel:VBoxXPCOMIPCC.dylib,1295368597000
rel:VBoxC.dylib,1295368597000

[CLASSIDS]
{d9e56bf8-e32e-4b6d-87f1-06d73b0ce7ca},,,,rel:VBoxXPCOMIPCC.dylib
{1403adf4-94d1-4c67-a8ae-d9f86972d378},,,,rel:VBoxXPCOMIPCC.dylib
{9f12676a-5168-4a08-beb8-edf8a593a1ca},,,,rel:VBoxXPCOMIPCC.dylib
{b1a7a4f2-47b9-4a1e-82b2-07ccd5323c3f},,,,rel:VBoxSVCM.dylib
{3c02f46d-c9d2-4f11-a384-53f0cf917214},,,,rel:VBoxC.dylib
{dd3fc71d-26c0-4fe1-bf6f-67f633265bba},,,,rel:VBoxC.dylib
{63a5d9dc-4828-425a-bd50-bd10a4b26f2c},,,,rel:VBoxXPCOMIPCC.dylib

[CONTRACTIDS]
@virtualbox.org/VirtualBoxClient;1,{dd3fc71d-26c0-4fe1-bf6f-67f633265bba}
@virtualbox.org/Session;1,{3c02f46d-c9d2-4f11-a384-53f0cf917214}
@mozilla.org/ipc/lock-service;1,{d9e56bf8-e32e-4b6d-87f1-06d73b0ce7ca}
@mozilla.org/ipc/service;1,{9f12676a-5168-4a08-beb8-edf8a593a1ca}
@virtualbox.org/VirtualBox;1,{b1a7a4f2-47b9-4a1e-82b2-07ccd5323c3f}
@mozilla.org/ipc/dconnect-service;1,{63a5d9dc-4828-425a-bd50-bd10a4b26f2c}
@mozilla.org/ipc/transaction-service;1,{1403adf4-94d1-4c67-a8ae-d9f86972d378}

[CATEGORIES]
xpcom-startup,ipcDConnectService,@mozilla.org/ipc/dconnect-service;1

0 comments on commit e231bf2

Please sign in to comment.