Class: SourceControl::Base
- Inherits:
-
Object
- Object
- SourceControl::Base
- Defined in:
- lib/source_control/base.rb
Overview
Base source control class, all concrete source controls subclass from it.
Instance Method Summary collapse
- #get_remote_info ⇒ Object
-
#initialize(options) ⇒ Base
constructor
A new instance of Base.
-
#shell(cmd) ⇒ Object
def method_missing(method, *args) run “#command #method” end.
Constructor Details
#initialize(options) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/source_control/base.rb', line 6 def initialize() @sc = end |
Instance Method Details
#get_remote_info ⇒ Object
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 |