Class: DocRepo::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/doc_repo/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#branchObject

Returns the value of attribute branch.



3
4
5
# File 'lib/doc_repo/configuration.rb', line 3

def branch
  @branch
end

#orgObject

Returns the value of attribute org.



3
4
5
# File 'lib/doc_repo/configuration.rb', line 3

def org
  @org
end

#repoObject

Returns the value of attribute repo.



3
4
5
# File 'lib/doc_repo/configuration.rb', line 3

def repo
  @repo
end