veewee 0.1.3 → 0.1.4

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.
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ tmp/*
5
5
  definitions/*
6
6
  boxes/*
7
7
  pkg/*
8
+ *.box
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- veewee (0.1.3)
4
+ veewee (0.1.4)
5
5
  highline (~> 1.6.1)
6
6
  net-ssh (~> 2.1.0)
7
7
  popen4 (~> 0.1.2)
@@ -39,6 +39,8 @@ class Command < Vagrant::Command::GroupBase
39
39
 
40
40
  desc "build BOXNAME", "Build the box BOXNAME"
41
41
  method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "overwrite the basebox"
42
+ method_option :nogui,:type => :boolean , :default => false, :aliases => "-n", :desc => "no gui"
43
+
42
44
  def build(boxname)
43
45
  Veewee::Session.build(boxname,options)
44
46
  end
@@ -197,7 +197,7 @@ module Veewee
197
197
 
198
198
  def self.build(boxname,options)
199
199
 
200
- options = { "force" => false, "format" => "vagrant" }.merge(options)
200
+ options = { "force" => false, "format" => "vagrant", "nogui" => true }.merge(options)
201
201
 
202
202
  #Now we have to load the definition (reads definition.rb)
203
203
  load_definition(boxname)
@@ -238,10 +238,12 @@ module Veewee
238
238
  add_ssh_nat_mapping(boxname)
239
239
 
240
240
  #Starting machine
241
- #vm.start("vrdp")
242
-
243
- start_vm(boxname,"gui")
244
241
 
242
+ if (options["nogui"]==true)
243
+ start_vm(boxname,"vrdp")
244
+ else
245
+ start_vm(boxname,"gui")
246
+ end
245
247
 
246
248
  #waiting for it to boot
247
249
  puts "Waiting for the machine to boot"
@@ -1,3 +1,3 @@
1
1
  module Veewee
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: veewee
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Patrick Debois
@@ -163,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
- hash: 4379394221836518214
166
+ hash: 4048542714583646501
167
167
  segments:
168
168
  - 0
169
169
  version: "0"