Sha256: 0d2439d74ea9f8af46d03ad9432f43812ef827935422b760dfcf87311521dde3

Contents?: true

Size: 372 Bytes

Versions: 338

Compression:

Stored size: 372 Bytes

Contents

module Travis
  module Tools
    module Assets
      BASE = File.expand_path('../../../../assets', __FILE__)
      extend self

      def asset_path(file)
        File.expand_path(file, BASE)
      end

      def asset(file)
        File.read(asset_path(file))
      end

      class << self
        alias [] asset_path
        alias read asset
      end
    end
  end
end

Version data entries

338 entries across 338 versions & 3 rubygems

Version Path
travis-1.8.14.travis.1184.9 lib/travis/tools/assets.rb
travis-1.8.14.travis.1183.9 lib/travis/tools/assets.rb
travis-1.8.14.travis.1178.9 lib/travis/tools/assets.rb
travis-1.8.14.travis.1175.9 lib/travis/tools/assets.rb
travis-1.8.14.travis.1172.9 lib/travis/tools/assets.rb
travis-1.8.14.travis.1164.9 lib/travis/tools/assets.rb
travis-1.8.14.travis.1163.9 lib/travis/tools/assets.rb
travis-1.8.14.travis.1162.9 lib/travis/tools/assets.rb
travis-1.8.14.travis.1160.9 lib/travis/tools/assets.rb
travis-1.8.13 lib/travis/tools/assets.rb
travis-1.8.14.travis.1156.9 lib/travis/tools/assets.rb
travis-1.8.14.travis.1155.9 lib/travis/tools/assets.rb
travis-1.8.13.travis.1152.9 lib/travis/tools/assets.rb
travis-1.8.13.travis.1148.9 lib/travis/tools/assets.rb
travis-1.8.12 lib/travis/tools/assets.rb
travis-1.8.13.travis.1141.9 lib/travis/tools/assets.rb
travis-1.8.12.travis.1136.9 lib/travis/tools/assets.rb
travis-1.8.12.travis.1135.9 lib/travis/tools/assets.rb
travis-1.8.12.travis.1125.9 lib/travis/tools/assets.rb
travis-1.8.12.pre.rc1 lib/travis/tools/assets.rb