Sha256: c622eec305d30ddbf0e1c2d3c1bfdb348303df6b803f529f4091cd7efd0439c3

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

# coding: utf-8
require "git"
require "octokit"

module Abak::Flow
  class Manager

    def initialize
      # preload dependencies
      configuration
      repository

      yield self if block_given?
    end

    def configuration
      @configuration ||= Configuration.new(self)
    end

    def repository
      @repository ||= Repository.new(self)
    end

    def github
      @github ||= Octokit::Client.new(login: configuration.oauth_user,
        oauth_token: configuration.oauth_token,
        proxy: configuration.http_proxy)
    end

    def git
      @git ||= Git.open(".")
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
abak-flow-1.0.3 lib/abak-flow/manager.rb
abak-flow-1.0.2 lib/abak-flow/manager.rb
abak-flow-1.0.1 lib/abak-flow/manager.rb
abak-flow-1.0.0 lib/abak-flow/manager.rb