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.11.travis.1010.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1009.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1008.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1007.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1004.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1003.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1002.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1001.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1000.9 lib/travis/client/cache.rb
travis-1.8.11.travis.998.9 lib/travis/client/cache.rb
travis-1.8.10.travis.997.9 lib/travis/client/cache.rb
travis-1.8.10 lib/travis/client/cache.rb
travis-1.8.10.travis.994.9 lib/travis/client/cache.rb
travis-1.8.10.travis.953.11 lib/travis/client/cache.rb
travis-akerl-1.8.9.1 lib/travis/client/cache.rb
travis-akerl-1.8.9 lib/travis/client/cache.rb
travis-1.8.10.travis.950.11 lib/travis/client/cache.rb
travis-1.8.10.travis.948.11 lib/travis/client/cache.rb
travis-1.8.10.travis.946.11 lib/travis/client/cache.rb
travis-1.8.10.travis.944.11 lib/travis/client/cache.rb