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

#branch_nameObject

Raises:

  • (NotImplementedError)


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

def branch_name
  raise NotImplementedError
end

#change_branch(name) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/repomen/repo/handler/base.rb', line 21

def change_branch(name)
  raise NotImplementedError
end

#retrieveObject

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/repomen/repo/handler/base.rb', line 25

def retrieve
  raise NotImplementedError
end

#revisionObject

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/repomen/repo/handler/base.rb', line 29

def revision
  raise NotImplementedError
end

#tagObject

Raises:

  • (NotImplementedError)


33
34
35
# File 'lib/repomen/repo/handler/base.rb', line 33

def tag
  raise NotImplementedError
end