Class: Rexer::Source::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rexer/source/base.rb

Direct Known Subclasses

Git

Instance Method Summary collapse

Instance Method Details

#info(_work_dir = nil) ⇒ Object

Return the status of the source.



20
# File 'lib/rexer/source/base.rb', line 20

def info(_work_dir = nil) = ""

#load(_path) ⇒ Object

Load the source to the given path.



5
6
7
# File 'lib/rexer/source/base.rb', line 5

def load(_path)
  raise "Not implemented"
end

#updatable?Boolean

Check if the source can be updated to a newer version.

Returns:

  • (Boolean)


15
16
17
# File 'lib/rexer/source/base.rb', line 15

def updatable?
  raise "Not implemented"
end

#update(_path) ⇒ Object

Update to the latest version of the source.



10
11
12
# File 'lib/rexer/source/base.rb', line 10

def update(_path)
  raise "Not implemented"
end