Class: Downloads::Servers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/downloads/servers.rb

Direct Known Subclasses

Local, Remote

Instance Method Summary collapse

Instance Method Details

#exists?(filename) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/downloads/servers.rb', line 4

def exists?(filename)
  filenames.include?(filename)
end

#filenamesObject



12
13
14
# File 'lib/downloads/servers.rb', line 12

def filenames
  files.map { |file| file[:name] }
end

#filesObject

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/downloads/servers.rb', line 8

def files
  raise NotImplementedError
end

#rsync_pathObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/downloads/servers.rb', line 16

def rsync_path
  raise NotImplementedError
end

#run(command) ⇒ Object

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/downloads/servers.rb', line 20

def run(command)
  raise NotImplementedError
end