Class: Yarg::Scm::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/yarg/scm.rb

Direct Known Subclasses

Git

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/yarg/scm.rb', line 6

def initialize(options = {})
  self.using = options[:using]
end

Instance Attribute Details

#usingObject

Returns the value of attribute using.



4
5
6
# File 'lib/yarg/scm.rb', line 4

def using
  @using
end

Instance Method Details

#commit_commandsObject



14
15
16
# File 'lib/yarg/scm.rb', line 14

def commit_commands
  []
end

#init_commandsObject



10
11
12
# File 'lib/yarg/scm.rb', line 10

def init_commands
  []
end

#install(repository, destination) ⇒ Object

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/yarg/scm.rb', line 18

def install(repository, destination)
  raise NotImplementedError, "install is not implemented by #{self.class.name}"
end