Class: DocRepo::Configuration
- Inherits:
-
Object
- Object
- DocRepo::Configuration
- Defined in:
- lib/doc_repo/configuration.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#org ⇒ Object
Returns the value of attribute org.
-
#repo ⇒ Object
Returns the value of attribute repo.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/doc_repo/configuration.rb', line 5 def initialize @org = ENV['DOC_REPO_ORG'] @repo = ENV['DOC_REPO_REPONAME'] @branch = ENV['DOC_REPO_BRANCH'] || "master" end |
Instance Attribute Details
#branch ⇒ Object
Returns the value of attribute branch.
3 4 5 |
# File 'lib/doc_repo/configuration.rb', line 3 def branch @branch end |
#org ⇒ Object
Returns the value of attribute org.
3 4 5 |
# File 'lib/doc_repo/configuration.rb', line 3 def org @org end |
#repo ⇒ Object
Returns the value of attribute repo.
3 4 5 |
# File 'lib/doc_repo/configuration.rb', line 3 def repo @repo end |