Sha256: c2083dc0f488e38eb7ede391df23f339e0db89f8c64b84fee9017c720eadeaf4

Contents?: true

Size: 581 Bytes

Versions: 351

Compression:

Stored size: 581 Bytes

Contents

require 'travis/client/weak_entity'

module Travis
  module Client
    class Cache < WeakEntity
      # @!parse attr_reader :repository_id, :size, :slug, :branch, :last_modified
      attributes :repository_id, :size, :slug, :branch, :last_modified
      time :last_modified

      # @!parse attr_reader :repository
      has :repository

      one :cache
      many :caches

      def delete
        repository.delete_caches(:branch => branch, :match => slug)
      end

      def inspect_info
        [repository.slug, branch, slug].compact.join(" ")
      end
    end
  end
end

Version data entries

351 entries across 351 versions & 3 rubygems

Version Path
travis-1.8.14.travis.1178.9 lib/travis/client/cache.rb
travis-1.8.14.travis.1175.9 lib/travis/client/cache.rb
travis-1.8.14.travis.1172.9 lib/travis/client/cache.rb
travis-1.8.14.travis.1164.9 lib/travis/client/cache.rb
travis-1.8.14.travis.1163.9 lib/travis/client/cache.rb
travis-1.8.14.travis.1162.9 lib/travis/client/cache.rb
travis-1.8.14.travis.1160.9 lib/travis/client/cache.rb
travis-1.8.13 lib/travis/client/cache.rb
travis-1.8.14.travis.1156.9 lib/travis/client/cache.rb
travis-1.8.14.travis.1155.9 lib/travis/client/cache.rb
travis-1.8.13.travis.1152.9 lib/travis/client/cache.rb
travis-1.8.13.travis.1148.9 lib/travis/client/cache.rb
travis-1.8.12 lib/travis/client/cache.rb
travis-1.8.13.travis.1141.9 lib/travis/client/cache.rb
travis-1.8.12.travis.1136.9 lib/travis/client/cache.rb
travis-1.8.12.travis.1135.9 lib/travis/client/cache.rb
travis-1.8.12.travis.1125.9 lib/travis/client/cache.rb
travis-1.8.12.pre.rc1 lib/travis/client/cache.rb
travis-1.8.12.travis.1116.9 lib/travis/client/cache.rb
travis-1.8.12.travis.1111.9 lib/travis/client/cache.rb