diff options
author | Austin English <austinenglish@gmail.com> | 2016-05-24 21:22:28 -0500 |
---|---|---|
committer | Austin English <austinenglish@gmail.com> | 2016-05-24 21:24:58 -0500 |
commit | ffac027e4eb88649732eea4705d230cbab537d8b (patch) | |
tree | f1db56a3a426e761e710d2c8405f52edd99cf0a9 | |
parent | d093a3c5dd67526c33830d0d888ca73c0009009c (diff) |
use if/end instead of Ruby 'and'feature/xxxx-check-vagrant-version
-rw-r--r-- | Rakefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |