Exception: EY::Repo::NotAGitRepository
- Defined in:
- lib/engineyard/repo.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
Instance Method Summary collapse
-
#initialize(output) ⇒ NotAGitRepository
constructor
A new instance of NotAGitRepository.
Constructor Details
#initialize(output) ⇒ NotAGitRepository
Returns a new instance of NotAGitRepository.
8 9 10 11 |
# File 'lib/engineyard/repo.rb', line 8 def initialize(output) @dir = File.(ENV['GIT_DIR'] || ENV['GIT_WORK_TREE'] || '.') super("#{output} (#{@dir})") end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
7 8 9 |
# File 'lib/engineyard/repo.rb', line 7 def dir @dir end |