Sha256: 1d237e5b03f924a8e84b43222687ad5acfd4c9d1e2f88472323ee1d9a92c1700
Contents?: true
Size: 663 Bytes
Versions: 10
Compression:
Stored size: 663 Bytes
Contents
class Jets::Builders module Util def sh(command) puts "=> #{command}".colorize(:green) success = system(command) unless success puts "#{command} failed to run.".colorize(:red) puts caller[0] exit 1 end success end def headline(message) puts "=> #{message}".colorize(:cyan) end # Provide pretty clear way to desinate full path. # full("bundled") => /tmp/jets/demo/bundled def full(relative_path) "#{Jets.build_root}/#{relative_path}" end def stage_area "#{Jets.build_root}/stage" end def code_area "#{stage_area}/code" end end end
Version data entries
10 entries across 10 versions & 1 rubygems