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.51.1.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.50.1.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.49.12.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.49.11.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.49.10.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.49.8.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.49.4.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.49.2.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.49.1.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.49.0.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.48.15.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.48.2.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.48.0.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.47.8.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.47.7.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.47.2.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.47.0.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.46.7.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.46.4.pre lib/cloudstrap/seed_properties.rb
cloudstrap-0.46.3.pre lib/cloudstrap/seed_properties.rb