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.12.travis.1101.9 lib/travis/client/cache.rb
travis-1.8.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1098.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1081.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1059.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1058.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1056.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1051.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1048.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1044.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1041.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1040.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1026.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1025.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1024.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1022.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1021.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1020.11 lib/travis/client/cache.rb
travis-1.8.11.travis.1012.9 lib/travis/client/cache.rb
travis-1.8.11.travis.1011.9 lib/travis/client/cache.rb