lib/lois/cli.rb in lois-0.1.0 vs lib/lois/cli.rb in lois-0.1.1

- old
+ new

@@ -13,11 +13,11 @@ desc: 'CI to load env vars from.' def rubocop puts 'Checking Rubocop' configure(options) - if system('bundle exec rubocop -f html -o lois/rubocop.html -f p') + if system('rubocop -f html -o lois/rubocop.html -f p') Lois.config.github.success('rubocop', 'Rubocop passed') else Lois.config.github.failure('rubocop', 'Rubocop failed') end end @@ -33,11 +33,11 @@ desc: 'CI to load env vars from.' def bundler_audit puts 'Checking bundler-audit' configure(options) - output = `bundle exec bundle-audit check --verbose --update` + output = `bundle-audit check --verbose --update` result = $CHILD_STATUS File.write('lois/bundler-audit.log', output) puts output if result.success? @@ -58,12 +58,12 @@ desc: 'CI to load env vars from.' def reek puts 'Checking reek' configure(options) - system('bundle exec reek -f html > lois/reek.html') - if system('bundle exec reek -n --sort-by smelliness') + system('reek -f html > lois/reek.html') + if system('reek -n --sort-by smelliness') Lois.config.github.success('reek', 'No code smells.') else Lois.config.github.failure('reek', 'Code smells found.') end end @@ -78,10 +78,10 @@ aliases: '-c', desc: 'CI to load env vars from.' def brakeman puts 'Checking brakeman' configure(options) - if system('bundle exec brakeman -o lois/brakeman.html -o /dev/stdout') + if system('brakeman -o lois/brakeman.html -o /dev/stdout') Lois.config.github.success('brakeman', 'No rails vulnerabilities found.') else Lois.config.github.failure('brakeman', 'Rails vulnerabilities found.') end end