Class: SourceControl::Base

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

Overview

Base source control class, all concrete source controls subclass from it.

Direct Known Subclasses

CVS, Darcs, Mercurial

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/source_control/base.rb', line 6

def initialize(options)
  @sc = options
end

Instance Method Details

#get_remote_infoObject



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

def get_remote_info
  @remote_info ||= get_remote_info_concrete
end

#shell(cmd) ⇒ Object

def method_missing(method, *args)

  run "#{command} #{method}"
end


18
19
20
21
22
23
# File 'lib/source_control/base.rb', line 18

def shell(cmd)
  # puts "SC: #{cmd}"
  response = `#{cmd}`
  # puts response
  response
end