From 622236c3ad6abc4aef200cc2d4fc2a09effd8647 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 9 Nov 2012 01:38:52 -0800 Subject: better vagrant error msg. --- lib/leap_cli/commands/vagrant.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3