Class: Repomen::Repo::Handler::Base

Inherits:
Object
  • Object
show all
Includes:
WithDefaultConfig
Defined in:
lib/repomen/repo/handler/base.rb

Direct Known Subclasses

Git

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from WithDefaultConfig

#default_config

Constructor Details

#initialize(url, path, _config = default_config) ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
# File 'lib/repomen/repo/handler/base.rb', line 11

def initialize(url, path, _config = default_config)
  @url = url
  @config = Repomen::Config(_config)
  @path = File.join(config.work_dir, path)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



7
8
9
# File 'lib/repomen/repo/handler/base.rb', line 7

def config
  @config
end

#pathObject (readonly)

Returns the value of attribute path.



8
9
10
# File 'lib/repomen/repo/handler/base.rb', line 8

def path
  @path
end

#urlObject (readonly)

Returns the value of attribute url.



9
10
11
# File 'lib/repomen/repo/handler/base.rb', line 9

def url
  @url
end

Instance Method Details

#retrieveObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/repomen/repo/handler/base.rb', line 17

def retrieve
  raise NotImplementedError
end