Sha256: 6e6091278ff33714ec39a5f96e1253cd9549e2f775c34d2839df573b5bb0ea86

Contents?: true

Size: 573 Bytes

Versions: 128

Compression:

Stored size: 573 Bytes

Contents

module 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

128 entries across 128 versions & 3 rubygems

Version Path
jets-2.3.1 lib/jets/builders/util.rb
jets-2.3.0 lib/jets/builders/util.rb
jets-2.2.5 lib/jets/builders/util.rb
jets-2.2.4 lib/jets/builders/util.rb
jets-2.2.3 lib/jets/builders/util.rb
jets-2.2.2 lib/jets/builders/util.rb
jets-2.2.1 lib/jets/builders/util.rb
jets-2.2.0 lib/jets/builders/util.rb
jets-2.1.7 lib/jets/builders/util.rb
jets-2.1.6 lib/jets/builders/util.rb
jets-2.1.5 lib/jets/builders/util.rb
jets-2.1.4 lib/jets/builders/util.rb
jets-2.1.3 lib/jets/builders/util.rb
jets-2.1.2 lib/jets/builders/util.rb
jets_bb_fork-0.0.4 lib/jets/builders/util.rb
jets-2.1.1 lib/jets/builders/util.rb
jets-2.1.0 lib/jets/builders/util.rb
jets-2.0.6 lib/jets/builders/util.rb
jets-2.0.5 lib/jets/builders/util.rb
jets-2.0.4 lib/jets/builders/util.rb