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.10.travis.946.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.944.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.943.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.942.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.941.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.940.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.935.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.933.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.931.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.930.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.929.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.927.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.925.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.924.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.923.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.922.11 lib/travis/tools/assets.rb
travis-1.8.10.travis.921.11 lib/travis/tools/assets.rb
travis-1.8.9 lib/travis/tools/assets.rb
travis-1.8.9.travis.919.11 lib/travis/tools/assets.rb
travis-1.8.9.travis.918.11 lib/travis/tools/assets.rb