summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/commands/debug.rb15
-rw-r--r--lib/leap_cli/commands/vagrant.rb4
2 files changed, 17 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/debug.rb b/lib/leap_cli/commands/debug.rb
new file mode 100644
index 00000000..a969b752
--- /dev/null
+++ b/lib/leap_cli/commands/debug.rb
@@ -0,0 +1,15 @@
+module LeapCli; module Commands
+
+ desc 'Output debug information.'
+ long_desc 'The FILTER can be the name of a node, service, or tag.'
+ arg_name 'FILTER'
+ command [:debug, :d] do |c|
+ c.action do |global,options,args|
+ nodes = manager.filter!(args)
+ ssh_connect(nodes, connect_options(options)) do |ssh|
+ ssh.leap.debug
+ end
+ end
+ end
+
+end; end
diff --git a/lib/leap_cli/commands/vagrant.rb b/lib/leap_cli/commands/vagrant.rb
index 5168a3c0..9fdd48e3 100644
--- a/lib/leap_cli/commands/vagrant.rb
+++ b/lib/leap_cli/commands/vagrant.rb
@@ -151,10 +151,10 @@ module LeapCli; module Commands
lines << %[ config.vm.provider "virtualbox" do |v|]
lines << %[ v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]]
lines << %[ v.name = "#{node.name}"]
- lines << %[ v.memory = 1024]
+ lines << %[ v.memory = 1536]
lines << %[ end]
lines << %[ config.vm.provider "libvirt" do |v|]
- lines << %[ v.memory = 1024]
+ lines << %[ v.memory = 1536]
lines << %[ end]
lines << %[ #{leapfile.custom_vagrant_vm_line}] if leapfile.custom_vagrant_vm_line
lines << %[ end]