Class: Abak::Flow::Manager
- Inherits:
-
Object
- Object
- Abak::Flow::Manager
- Includes:
- Singleton
- Defined in:
- lib/abak-flow/manager.rb
Instance Method Summary collapse
- #configuration ⇒ Object
- #git ⇒ Object
- #github ⇒ Object
-
#initialize ⇒ Manager
constructor
A new instance of Manager.
- #repository ⇒ Object
Constructor Details
#initialize ⇒ Manager
Returns a new instance of Manager.
10 11 12 13 14 |
# File 'lib/abak-flow/manager.rb', line 10 def initialize # preload dependencies configuration repository end |
Instance Method Details
#configuration ⇒ Object
16 17 18 |
# File 'lib/abak-flow/manager.rb', line 16 def configuration @configuration ||= Configuration.new(self) end |
#git ⇒ Object
30 31 32 |
# File 'lib/abak-flow/manager.rb', line 30 def git @git ||= Git.open(".") end |
#github ⇒ Object
24 25 26 27 28 |
# File 'lib/abak-flow/manager.rb', line 24 def github @github ||= Octokit::Client.new(login: configuration.oauth_user, oauth_token: configuration.oauth_token, proxy: configuration.http_proxy) end |
#repository ⇒ Object
20 21 22 |
# File 'lib/abak-flow/manager.rb', line 20 def repository @repository ||= Repository.new(self) end |