From: elijah Date: Fri, 9 Nov 2012 09:38:52 +0000 (-0800) Subject: better vagrant error msg. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=622236c3ad6abc4aef200cc2d4fc2a09effd8647;p=leap%2Fleap_cli.git better vagrant error msg. --- diff --git a/lib/leap_cli/commands/vagrant.rb b/lib/leap_cli/commands/vagrant.rb index 587e5e1..07bb863 100644 --- a/lib/leap_cli/commands/vagrant.rb +++ b/lib/leap_cli/commands/vagrant.rb @@ -37,12 +37,13 @@ module LeapCli; module Commands private def vagrant_command(cmd, args) + assert_config! 'provider.vagrant.network' create_vagrant_file nodes = manager.filter(args)[:local => true].field(:name) if nodes.any? execute "cd #{File.dirname(Path.named_path(:vagrantfile))}; vagrant #{cmd} #{nodes.join(' ')}" else - bail! "No nodes found" + bail! "No nodes found. This command only works on nodes with ip_address in the network #{manager.provider.vagrant.network}" end end