Sha256: acb3cc70ca8038850ffe5154e06fe7c28702b8c777df33fd2e1b9c3392dc8e83

Contents?: true

Size: 602 Bytes

Versions: 2

Compression:

Stored size: 602 Bytes

Contents

module DeepThought
  module CIService
    class CIService
      attr_accessor :endpoint, :username, :password

      def initialize
        if self.class.name == 'DeepThought::CIService::CIService'
          raise "#{self.class.name} is abstract, you cannot instantiate it directly."
        end
      end

      def setup?(settings)
        @endpoint = settings['CI_SERVICE_ENDPOINT']
        @username = settings['CI_SERVICE_USERNAME']
        @password = settings['CI_SERVICE_PASSWORD']

        true
      end

      def is_branch_green?(app, branch, hash)
        true
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deep_thought-0.2.1 lib/deep_thought/ci_service/ci_service.rb
deep_thought-0.1.1 lib/deep_thought/ci_service/ci_service.rb