Sha256: 75cba3232b8f9c500d0bf3a2f49c6e858a1f7d02012cc6f7ed9260e8ecfd3531

Contents?: true

Size: 572 Bytes

Versions: 36

Compression:

Stored size: 572 Bytes

Contents

class Jets::Builders
  module Util
  private
    def sh(command)
      puts "=> #{command}".color(:green)
      success = system(command)
      unless success
        puts "#{command} failed to run.".color(:red)
        puts caller[0]
        exit 1
      end
      success
    end

    def headline(message)
      puts "=> #{message}".color(:cyan)
    end

    def build_area
      Jets.build_root
    end

    def stage_area
      "#{build_area}/stage"
    end

    def cache_area
      "#{build_area}/cache" # cleaner to use full path for this setting
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
jets-1.9.7 lib/jets/builders/util.rb
jets-1.9.6 lib/jets/builders/util.rb
jets-1.9.5 lib/jets/builders/util.rb
jets-1.9.4 lib/jets/builders/util.rb
jets-1.9.3 lib/jets/builders/util.rb
jets-1.9.2 lib/jets/builders/util.rb
jets-1.9.1 lib/jets/builders/util.rb
jets-1.9.0 lib/jets/builders/util.rb
jets-1.8.14 lib/jets/builders/util.rb
jets-1.8.13 lib/jets/builders/util.rb
jets-1.8.12 lib/jets/builders/util.rb
jets-1.8.11 lib/jets/builders/util.rb
jets-1.8.10 lib/jets/builders/util.rb
jets-1.8.9 lib/jets/builders/util.rb
jets-1.8.8 lib/jets/builders/util.rb
jets-1.8.7 lib/jets/builders/util.rb
jets-1.8.6 lib/jets/builders/util.rb
jets-1.8.5 lib/jets/builders/util.rb
jets-1.8.4 lib/jets/builders/util.rb
jets-1.8.3 lib/jets/builders/util.rb