Sha256: 6d536d60b1c681baf796b13e15d8740669e257a14a26cfcc6d84ed14ac7e87bd

Contents?: true

Size: 587 Bytes

Versions: 64

Compression:

Stored size: 587 Bytes

Contents

require 'contracts'
require 'faraday'
require_relative 'config'

module Cloudstrap
  class SeedProperties
    include ::Contracts::Core
    include ::Contracts::Builtin

    Contract None => String
    def source
      config.bootstrap_properties_seed_url
    end

    Contract None => ::Faraday::Response
    def connection
      @connection ||= ::Faraday.get source
    end

    Contract None => Maybe[String]
    def contents
      @contents ||= connection.body if connection.success?
    end

    Contract None => Config
    def config
      @config ||= Config.new
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
cloudstrap-0.40.0.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.39.0.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.38.18.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.38.17.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.38.5.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.38.3.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.38.2.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.38.1.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.38.0.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.37.9.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.37.6.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.37.5.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.37.4.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.37.1.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.37.0.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.35.5.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.35.0.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.34.5.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.34.1.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.34.0.pre lib/cloudstrap/seed_properties.rb