diff options
author | elijah <elijah@riseup.net> | 2012-11-09 01:38:52 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-11-09 01:38:52 -0800 |
commit | 622236c3ad6abc4aef200cc2d4fc2a09effd8647 (patch) | |
tree | f2113f52054c60a88c635e94bcebceb8f137c2fc | |
parent | febeb64a801f3b4c72193bc93ee0400dee3a2a0a (diff) |
better vagrant error msg.
-rw-r--r-- | lib/leap_cli/commands/vagrant.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |