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.6.13.travis.536.6 lib/travis/tools/assets.rb
travis-1.6.12 lib/travis/tools/assets.rb
travis-1.6.13.travis.534.6 lib/travis/tools/assets.rb
travis-1.6.12.travis.531.6 lib/travis/tools/assets.rb
travis-1.6.12.travis.529.6 lib/travis/tools/assets.rb
travis-1.6.12.travis.528.6 lib/travis/tools/assets.rb
travis-1.6.12.travis.524.6 lib/travis/tools/assets.rb
travis-1.6.12.travis.523.6 lib/travis/tools/assets.rb
travis-1.6.12.travis.521.6 lib/travis/tools/assets.rb
travis-1.6.12.travis.520.6 lib/travis/tools/assets.rb
travis-1.6.12.travis.517.6 lib/travis/tools/assets.rb
travis-1.6.11 lib/travis/tools/assets.rb
travis-1.6.11.travis.516.6 lib/travis/tools/assets.rb
travis-1.6.11.travis.511.6 lib/travis/tools/assets.rb
travis-1.6.11.travis.510.6 lib/travis/tools/assets.rb
travis-1.6.11.travis.507.6 lib/travis/tools/assets.rb
travis-1.6.11.travis.503.6 lib/travis/tools/assets.rb
travis-1.6.10 lib/travis/tools/assets.rb
travis-1.6.11.travis.502.6 lib/travis/tools/assets.rb
travis-1.6.9 lib/travis/tools/assets.rb