Class: Bookbinder::Ingest::MissingWorkingCopy

Inherits:
Object
  • Object
show all
Defined in:
lib/bookbinder/ingest/missing_working_copy.rb

Instance Method Summary collapse

Constructor Details

#initialize(source_repo_name) ⇒ MissingWorkingCopy

Returns a new instance of MissingWorkingCopy.



4
5
6
# File 'lib/bookbinder/ingest/missing_working_copy.rb', line 4

def initialize(source_repo_name)
  @source_repo_name = source_repo_name
end

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/bookbinder/ingest/missing_working_copy.rb', line 16

def available?
  false
end

#full_nameObject



8
9
10
# File 'lib/bookbinder/ingest/missing_working_copy.rb', line 8

def full_name
  @source_repo_name
end

#pathObject



12
13
14
# File 'lib/bookbinder/ingest/missing_working_copy.rb', line 12

def path
  Pathname("/this/doesnt/actually/exist/#{SecureRandom.uuid}")
end