Sha256: 075b35e5d5a69ac9366b48ad6143e258b61aebe3ff2a8c08d39787ebad301072

Contents?: true

Size: 339 Bytes

Versions: 35

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

require "open-uri"

module Groundskeeper
  # A deployed website/application.
  class Website
    VERSION_PATH = "version.txt"

    attr_reader :uri

    def initialize(uri)
      @uri = uri
    end

    # :nocov:
    def version
      URI.parse("#{uri}/#{VERSION_PATH}").read
    end
    # :nocov:
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
groundskeeper-bitcore-0.34.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.33.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.32.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.31.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.29.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.28.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.27.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.26.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.24.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.23.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.22.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.21.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.20.1 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.19.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.18.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.17.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.16.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.15.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.14.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.13.0 lib/groundskeeper/website.rb