Class: GHFS::Config
- Inherits:
-
Object
- Object
- GHFS::Config
- Includes:
- Singleton
- Defined in:
- lib/github-fs/config.rb
Class Method Summary collapse
Instance Method Summary collapse
- #branch ⇒ Object
- #branch=(value) ⇒ Object
- #github_access_token ⇒ Object
- #github_access_token=(value) ⇒ Object
- #repository ⇒ Object
- #repository=(value) ⇒ Object
Class Method Details
.method_missing(meth, *args, &block) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/github-fs/config.rb', line 5 def self.method_missing(meth, *args, &block) if instance.respond_to?(meth) instance.send(meth, *args, &block) else super end end |
Instance Method Details
#branch ⇒ Object
17 18 19 |
# File 'lib/github-fs/config.rb', line 17 def branch @branch || "master" end |
#branch=(value) ⇒ Object
13 14 15 |
# File 'lib/github-fs/config.rb', line 13 def branch= value @branch = value end |
#github_access_token ⇒ Object
25 26 27 |
# File 'lib/github-fs/config.rb', line 25 def github_access_token @github_access_token || raise("Github access token is not set") end |
#github_access_token=(value) ⇒ Object
21 22 23 |
# File 'lib/github-fs/config.rb', line 21 def github_access_token= value @github_access_token = value end |
#repository ⇒ Object
33 34 35 |
# File 'lib/github-fs/config.rb', line 33 def repository @repository || raise("Github repository is not set") end |
#repository=(value) ⇒ Object
29 30 31 |
# File 'lib/github-fs/config.rb', line 29 def repository= value @repository = value end |