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.12.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.11.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.10.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.9.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.8.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.7.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.6.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.5.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.4.0 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.3.7 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.3.6 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.3.5 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.3.4 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.3.3 lib/groundskeeper/website.rb
groundskeeper-bitcore-0.3.2 lib/groundskeeper/website.rb