Sha256: 3f2f267e115139db493494d81813437a069fcb5d2ea3f3d29eccbe39100df321

Contents?: true

Size: 615 Bytes

Versions: 7

Compression:

Stored size: 615 Bytes

Contents

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

module Abak::Flow
  class Manager
    include Singleton

    def initialize
      # preload dependencies
      configuration
      repository
    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

7 entries across 7 versions & 1 rubygems

Version Path
abak-flow-1.0.10 lib/abak-flow/manager.rb
abak-flow-1.0.9 lib/abak-flow/manager.rb
abak-flow-1.0.8 lib/abak-flow/manager.rb
abak-flow-1.0.7 lib/abak-flow/manager.rb
abak-flow-1.0.6 lib/abak-flow/manager.rb
abak-flow-1.0.5 lib/abak-flow/manager.rb
abak-flow-1.0.4 lib/abak-flow/manager.rb