Module: Satorix::CI::Test::Ruby::BundlerAudit
Instance Method Summary
collapse
#colorize, #colors, #humanize_time, #log, #log_bench, #log_command, #log_duration, #log_error, #log_error_and_abort, #log_header, #run_command, #source_env_from
Instance Method Details
#go ⇒ Object
12
13
14
15
16
|
# File 'lib/satorix/CI/test/ruby/bundler_audit.rb', line 12
def go
log_bench('Displaying current Ruby version...') { run_command(%w[ruby -v]) }
log_bench('Installing bundler-audit...') { install_gem }
log_bench('Auditing Gemfile.lock...') { run_scan }
end
|
#install_gem ⇒ Object
19
20
21
|
# File 'lib/satorix/CI/test/ruby/bundler_audit.rb', line 19
def install_gem
run_command(['gem', 'install', 'bundler-audit', '--no-document', '--bindir', Satorix.bin_dir])
end
|
#run_scan ⇒ Object
24
25
26
|
# File 'lib/satorix/CI/test/ruby/bundler_audit.rb', line 24
def run_scan
run_command(%w[bundle-audit check --update])
end
|