Class: RakeDotNet::SvnExport

Inherits:
SvnCmd show all
Defined in:
lib/rake_dotnet.rb

Instance Attribute Summary

Attributes inherited from Cli

#bin, #search_paths

Instance Method Summary collapse

Methods inherited from Cli

#exe, #search_for_exe

Constructor Details

#initialize(params = {}) ⇒ SvnExport

Returns a new instance of SvnExport.

Raises:

  • (ArgumentError)


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

#cmdObject



1145
1146
1147
# File 'lib/rake_dotnet.rb', line 1145

def cmd
	return "#{super} export #{src} #{dest}"
end

#destObject



1141
1142
1143
# File 'lib/rake_dotnet.rb', line 1141

def dest
	return "\"#{File.expand_path(@dest)}\""
end

#runObject



1149
1150
1151
1152
# File 'lib/rake_dotnet.rb', line 1149

def run
	puts cmd if VERBOSE==true
	sh cmd
end

#srcObject



1137
1138
1139
# File 'lib/rake_dotnet.rb', line 1137

def src
	return "\"#{File.expand_path(@src)}\""
end