Class: Bookwatch::Ingest::MissingWorkingCopy

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

Instance Method Summary collapse

Constructor Details

#initialize(source_repo_name, source_dir, source_ref = nil) ⇒ MissingWorkingCopy

Returns a new instance of MissingWorkingCopy.



4
5
6
7
8
# File 'lib/bookwatch/ingest/missing_working_copy.rb', line 4

def initialize(source_repo_name, source_dir, source_ref=nil)
  @source_repo_name = source_repo_name
  @source_dir = source_dir
  @source_ref = source_ref
end

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/bookwatch/ingest/missing_working_copy.rb', line 22

def available?
  false
end

#full_nameObject



10
11
12
# File 'lib/bookwatch/ingest/missing_working_copy.rb', line 10

def full_name
  @source_repo_name
end

#pathObject



14
15
16
# File 'lib/bookwatch/ingest/missing_working_copy.rb', line 14

def path
  Pathname(@source_dir)
end

#refObject



18
19
20
# File 'lib/bookwatch/ingest/missing_working_copy.rb', line 18

def ref
  @source_ref
end