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.6.9.travis.479.6 lib/travis/client/cache.rb
travis-1.6.9.travis.463.6 lib/travis/client/cache.rb
travis-1.6.9.travis.462.6 lib/travis/client/cache.rb
travis-1.6.9.travis.461.6 lib/travis/client/cache.rb
travis-1.6.9.travis.458.6 lib/travis/client/cache.rb
travis-1.6.8 lib/travis/client/cache.rb
travis-1.6.8.travis.457.6 lib/travis/client/cache.rb
travis-1.6.8.travis.456.6 lib/travis/client/cache.rb
travis-1.6.8.travis.455.6 lib/travis/client/cache.rb
travis-1.6.8.travis.454.6 lib/travis/client/cache.rb
travis-1.6.8.travis.453.6 lib/travis/client/cache.rb
travis-1.6.8.travis.452.6 lib/travis/client/cache.rb
travis-1.6.8.travis.451.6 lib/travis/client/cache.rb
travis-1.6.8.travis.450.6 lib/travis/client/cache.rb
travis-1.6.8.travis.449.6 lib/travis/client/cache.rb
travis-1.6.8.travis.447.6 lib/travis/client/cache.rb
travis-1.6.7.travis.446.6 lib/travis/client/cache.rb
travis-1.6.7 lib/travis/client/cache.rb
travis-1.6.7.travis.445.6 lib/travis/client/cache.rb
travis-1.6.7.travis.443.6 lib/travis/client/cache.rb