Class: Rubbr::Scm::Base

Inherits:
Object
  • Object
show all
Includes:
Cli
Defined in:
lib/rubbr/scm.rb

Direct Known Subclasses

Mercurial, Subversion

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Cli

#color?, #disable_stderr, #disable_stdinn, #disable_stdout, #error, #executable?, #notice, #valid_executable, #warning

Instance Attribute Details

#dateObject

The revision and date of the tip/head/latest changeset.



17
18
19
# File 'lib/rubbr/scm.rb', line 17

def date
  @date
end

#executableObject

The Mercurial executable.



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

def executable
  @executable
end

#nameObject

The name of the SCM system.



11
12
13
# File 'lib/rubbr/scm.rb', line 11

def name
  @name
end

#revisionObject

The revision and date of the tip/head/latest changeset.



17
18
19
# File 'lib/rubbr/scm.rb', line 17

def revision
  @revision
end

Instance Method Details

#collect_scm_statsObject



19
20
21
22
23
# File 'lib/rubbr/scm.rb', line 19

def collect_scm_stats
  { :name => @name,
    :revision => @revision,
    :date => @date }
end