From d30e9067a94e0d236df65d37b81809ddd6a4f153 Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 28 Jan 2013 02:23:50 -0800 Subject: added custom_vagrant_vm_line to Leapfile --- lib/leap_cli/commands/project.rb | 9 ++++++--- lib/leap_cli/commands/vagrant.rb | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/leap_cli/commands') diff --git a/lib/leap_cli/commands/project.rb b/lib/leap_cli/commands/project.rb index 2f36bc5..12d159b 100644 --- a/lib/leap_cli/commands/project.rb +++ b/lib/leap_cli/commands/project.rb @@ -61,10 +61,13 @@ module LeapCli; module Commands end def leapfile_content(options) - %[@platform_directory_path = "#{options[:platform]}" + %[## Required: +@platform_directory_path = "#{options[:platform]}" +@leap_version = "#{LeapCli::VERSION}" + +## Optional: +# @custom_vagrant_vm_line = "config.vm.boot_mode = :gui" ] - # leap_version = "#{LeapCli::VERSION}" - # platform_version = "" end GITIGNORE_CONTENT = < "#{netmask}"] lines << %[ config.vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]] + lines << %[ #{leapfile.custom_vagrant_vm_line}] if leapfile.custom_vagrant_vm_line lines << %[ end] end end -- cgit v1.2.3