Sha256: 495584a51397b81867ec0382c445e4e65c3d937b444f794027803287c0804047
Contents?: true
Size: 361 Bytes
Versions: 9
Compression:
Stored size: 361 Bytes
Contents
module CommandHelper def create_file(path, content) file = Bbq.root.join(path) FileUtils.mkdir_p(file.dirname) file.open('w') { |f| f.write(content) } end attr_accessor :output def run_cmd(command) self.output = Bundler.with_clean_env { `#{command} 2>&1` } raise "`#{command}` failed with:\n#{output}" unless $?.success? end end
Version data entries
9 entries across 9 versions & 1 rubygems