Exception: EY::Repo::NotAGitRepository

Inherits:
Error
  • Object
show all
Defined in:
lib/engineyard/repo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.expand_path(ENV['GIT_DIR'] || ENV['GIT_WORK_TREE'] || '.')
  super("#{output} (#{@dir})")
end

Instance Attribute Details

#dirObject (readonly)

Returns the value of attribute dir.



7
8
9
# File 'lib/engineyard/repo.rb', line 7

def dir
  @dir
end