Sha256: cc48060922b6d5d384198bbcfd9c95dabe2c24398fc392528e99db5b605fd461

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 Bytes

Contents

require 'logger'
require "diffy"
require "jenkins_api_client"

module Jendle
  class Core

    attr_accessor :client
    attr_accessor :logger

    def initialize(config)
      @client = get_client(config['server_ip'], config['username'], config['password'])
      @logger = Logger.new(STDOUT)
    end

    def get_client(server_ip, username, password)
      params = {
        :server_ip => server_ip
      }
      params[:username] = username if username
      params[:password] = password if password
      @client = JenkinsApi::Client.new(params)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jendle-0.1.0 lib/jendle/core.rb