Sha256: 5d8a2ee33d4cf57a0ca918bea51169d43925cd0e0ad02a7484d77b9a6bf78229
Contents?: true
Size: 382 Bytes
Versions: 35
Compression:
Stored size: 382 Bytes
Contents
require 'bundler' require 'roo_on_rails/checks' module RooOnRails class Shell CommandFailed = Class.new(StandardError) def run(cmd) result = Bundler.with_clean_env { %x{#{cmd}} } return [$?.success?, result] end def run!(cmd) raise CommandFailed.new(cmd) unless run(cmd).first end def run?(cmd) run(cmd).first end end end
Version data entries
35 entries across 35 versions & 1 rubygems