veewee 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/veewee/command.rb +2 -0
- data/lib/veewee/session.rb +6 -4
- data/lib/veewee/version.rb +1 -1
- metadata +2 -2
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/lib/veewee/command.rb
CHANGED
@@ -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
|
data/lib/veewee/session.rb
CHANGED
@@ -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"
|
data/lib/veewee/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: veewee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
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:
|
166
|
+
hash: 4048542714583646501
|
167
167
|
segments:
|
168
168
|
- 0
|
169
169
|
version: "0"
|