Class: RakeDotNet::SvnInfo
Instance Attribute Summary
Attributes inherited from Cli
Instance Method Summary collapse
- #cmd ⇒ Object
-
#initialize(params = {}) ⇒ SvnInfo
constructor
A new instance of SvnInfo.
- #path ⇒ Object
- #revision ⇒ Object
Methods inherited from Cli
Constructor Details
#initialize(params = {}) ⇒ SvnInfo
Returns a new instance of SvnInfo.
1156 1157 1158 1159 |
# File 'lib/rake_dotnet.rb', line 1156 def initialize(params={}) super @path = params[:path] || '.' end |
Instance Method Details
#cmd ⇒ Object
1161 1162 1163 |
# File 'lib/rake_dotnet.rb', line 1161 def cmd "#{super} info #{path}" end |
#path ⇒ Object
1171 1172 1173 |
# File 'lib/rake_dotnet.rb', line 1171 def path "\"#{@path}\"" end |
#revision ⇒ Object
1165 1166 1167 1168 1169 |
# File 'lib/rake_dotnet.rb', line 1165 def revision puts cmd if VERBOSE out = `#{cmd}` out.match(/Revision: (\d+)/)[1] end |