Class: RakeDotNet::SvnExport
Instance Attribute Summary
Attributes inherited from Cli
Instance Method Summary collapse
- #cmd ⇒ Object
- #dest ⇒ Object
-
#initialize(params = {}) ⇒ SvnExport
constructor
A new instance of SvnExport.
- #run ⇒ Object
- #src ⇒ Object
Methods inherited from Cli
Constructor Details
#initialize(params = {}) ⇒ SvnExport
Returns a new instance of SvnExport.
1129 1130 1131 1132 1133 1134 1135 |
# File 'lib/rake_dotnet.rb', line 1129 def initialize(params={}) super raise(ArgumentError, "src parameter was missing", caller) if params[:src].nil? raise(ArgumentError, "dest parameter was missing", caller) if params[:dest].nil? @src = params[:src] @dest = params[:dest] end |
Instance Method Details
#cmd ⇒ Object
1145 1146 1147 |
# File 'lib/rake_dotnet.rb', line 1145 def cmd return "#{super} export #{src} #{dest}" end |
#dest ⇒ Object
1141 1142 1143 |
# File 'lib/rake_dotnet.rb', line 1141 def dest return "\"#{File.(@dest)}\"" end |
#run ⇒ Object
1149 1150 1151 1152 |
# File 'lib/rake_dotnet.rb', line 1149 def run puts cmd if VERBOSE==true sh cmd end |
#src ⇒ Object
1137 1138 1139 |
# File 'lib/rake_dotnet.rb', line 1137 def src return "\"#{File.(@src)}\"" end |