Class: GitFindCommitter::Configuration
- Inherits:
-
Object
- Object
- GitFindCommitter::Configuration
- Defined in:
- lib/git_find_committer/configuration.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#available_committer_names ⇒ Object
Returns the value of attribute available_committer_names.
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#repo ⇒ Object
Returns the value of attribute repo.
-
#repo_name ⇒ Object
Returns the value of attribute repo_name.
-
#tmp_repo_dir ⇒ Object
Returns the value of attribute tmp_repo_dir.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #set_repo(repo) ⇒ Object
- #tmp_repo_path ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
3 4 5 6 7 8 9 10 11 |
# File 'lib/git_find_committer/configuration.rb', line 3 def initialize @owner = nil @repo = nil @branch = branch @access_token = nil @url = "https://github.com" @tmp_repo_dir = '/tmp/git_find_committer' @available_committer_names = nil end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
12 13 14 |
# File 'lib/git_find_committer/configuration.rb', line 12 def access_token @access_token end |
#available_committer_names ⇒ Object
Returns the value of attribute available_committer_names.
12 13 14 |
# File 'lib/git_find_committer/configuration.rb', line 12 def available_committer_names @available_committer_names end |
#branch ⇒ Object
Returns the value of attribute branch.
12 13 14 |
# File 'lib/git_find_committer/configuration.rb', line 12 def branch @branch end |
#owner ⇒ Object
Returns the value of attribute owner.
12 13 14 |
# File 'lib/git_find_committer/configuration.rb', line 12 def owner @owner end |
#repo ⇒ Object
Returns the value of attribute repo.
12 13 14 |
# File 'lib/git_find_committer/configuration.rb', line 12 def repo @repo end |
#repo_name ⇒ Object
Returns the value of attribute repo_name.
12 13 14 |
# File 'lib/git_find_committer/configuration.rb', line 12 def repo_name @repo_name end |
#tmp_repo_dir ⇒ Object
Returns the value of attribute tmp_repo_dir.
12 13 14 |
# File 'lib/git_find_committer/configuration.rb', line 12 def tmp_repo_dir @tmp_repo_dir end |
#url ⇒ Object
Returns the value of attribute url.
12 13 14 |
# File 'lib/git_find_committer/configuration.rb', line 12 def url @url end |
Instance Method Details
#set_repo(repo) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/git_find_committer/configuration.rb', line 14 def set_repo(repo) @repo = repo repo = repo.split("/") @owner = repo[0] @repo_name = repo[1] self end |
#tmp_repo_path ⇒ Object
22 23 24 |
# File 'lib/git_find_committer/configuration.rb', line 22 def tmp_repo_path File.join(@tmp_repo_dir, @repo_name) end |