Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
405 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,13 +1,2 @@ | |||
class VeeweeCommand < Vagrant::Command::GroupBase | require 'vagrant' | ||
register "veewee", "creates boxes" | require 'veewee/command' | ||
|
|||
desc "hello", "Says hello" | |||
def hello | |||
puts "HELLO!" | |||
end | |||
|
|||
desc "goodbye", "Says goodbye" | |||
def goodbye | |||
puts "GOODBYE!" | |||
end | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |
Oops, something went wrong.