Exception: Manifestly::Repository::CommitNotPresent

Inherits:
StandardError
  • Object
show all
Defined in:
lib/manifestly/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sha, repository) ⇒ CommitNotPresent

Returns a new instance of CommitNotPresent.



9
10
11
12
13
# File 'lib/manifestly/repository.rb', line 9

def initialize(sha, repository)
  @sha = sha
  @repository = repository
  super("SHA '#{sha}' not found in repository '#{repository.github_name_or_path}'")
end

Instance Attribute Details

#repositoryObject (readonly)

Returns the value of attribute repository.



8
9
10
# File 'lib/manifestly/repository.rb', line 8

def repository
  @repository
end

#shaObject (readonly)

Returns the value of attribute sha.



8
9
10
# File 'lib/manifestly/repository.rb', line 8

def sha
  @sha
end