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.5.travis.784.4 lib/travis/tools/assets.rb
travis-1.8.5.travis.783.4 lib/travis/tools/assets.rb
travis-1.8.5.travis.781.4 lib/travis/tools/assets.rb
travis-1.8.4 lib/travis/tools/assets.rb
travis-1.8.5.travis.779.4 lib/travis/tools/assets.rb
travis-1.8.3 lib/travis/tools/assets.rb
travis-1.8.4.travis.777.4 lib/travis/tools/assets.rb
travis-1.8.4.travis.775.4 lib/travis/tools/assets.rb
travis-1.8.3.travis.773.4 lib/travis/tools/assets.rb
travis-async-listener-1.8.3 lib/travis/tools/assets.rb
travis-1.8.3.travis.745.4 lib/travis/tools/assets.rb
travis-1.8.3.travis.726.4.pre.debug lib/travis/tools/assets.rb
travis-1.8.3.travis.724.4 lib/travis/tools/assets.rb
travis-1.8.2 lib/travis/tools/assets.rb
travis-1.8.2.travis.722.4 lib/travis/tools/assets.rb
travis-1.8.2.travis.719.4 lib/travis/tools/assets.rb
travis-1.8.1 lib/travis/tools/assets.rb
travis-1.8.1.travis.717.4 lib/travis/tools/assets.rb
travis-1.8.1.travis.713.4 lib/travis/tools/assets.rb
travis-1.8.1.travis.705.5 lib/travis/tools/assets.rb