summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin English <austinenglish@gmail.com>2016-05-24 21:22:28 -0500
committerAustin English <austinenglish@gmail.com>2016-05-24 21:24:58 -0500
commitffac027e4eb88649732eea4705d230cbab537d8b (patch)
treef1db56a3a426e761e710d2c8405f52edd99cf0a9
parentd093a3c5dd67526c33830d0d888ca73c0009009c (diff)
use if/end instead of Ruby 'and'feature/xxxx-check-vagrant-version
-rw-r--r--Rakefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 92c4f98..c1d3bc6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -333,8 +333,9 @@ end
namespace :vm do
desc 'Start the build virtual machine'
task :up => ['parse_build_options', 'validate_http_proxy'] do
- open('/proc/modules').grep(/^kvm\s/).empty? and
- raise "kvm kernel module is not loaded, please fix that."
+ if open('/proc/modules').grep(/^kvm\s/).empty?
+ raise "kvm kernel module is not loaded, please fix that."
+ end
case vm_state
when :not_created