Module: Nbuild
- Defined in:
- lib/nbuild/tf.rb,
lib/nbuild/cmd.rb,
lib/nbuild/nunit_cmd.rb,
lib/nbuild/mstest_cmd.rb,
lib/nbuild/ncache_cmd.rb,
lib/nbuild/ncover_cmd.rb,
lib/nbuild/file_filter.rb,
lib/nbuild/msbuild_cmd.rb,
lib/nbuild/ndepend_cmd.rb,
lib/nbuild/msi_exec_cmd.rb,
lib/nbuild/install_util_cmd.rb,
lib/nbuild/visual_studio_cmd.rb
Defined Under Namespace
Classes: Cmd, FileFilter, InstallUtilCmd, MSBuildCmd, MSTestCmd, MsiExecCmd, NCacheCmd, NCoverCmd, NDependCmd, NUnitCmd, TFS, VisualStudioCmd
Instance Method Summary
collapse
Instance Method Details
#command(params) ⇒ Object
35
36
37
|
# File 'lib/nbuild/cmd.rb', line 35
def command params
Cmd.new(params).execute
end
|
#install_msi(params = {}) ⇒ Object
32
33
34
|
# File 'lib/nbuild/msi_exec_cmd.rb', line 32
def install_msi params={}
MsiExecCmd.new(params.merge(:install => true)).execute
end
|
#install_util_task(params = {}) ⇒ Object
16
17
18
|
# File 'lib/nbuild/install_util_cmd.rb', line 16
def install_util_task params={}
InstallUtilCmd.new(params).execute
end
|
#install_util_tasks(task, assembly, *deps) ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/nbuild/install_util_cmd.rb', line 20
def install_util_tasks task, assembly, *deps
description = task.to_s.gsub('_',' ')
desc 'install ' + description
task "installed_#{task}".to_sym => deps do
install_util_task :assembly => assembly, :install => true
end
desc 'uninstall ' + description
task "uninstalled_#{task}".to_sym => deps do
install_util_task :assembly => assembly, :install => false
end
end
|
#msbuild2(params = {}) ⇒ Object
28
29
30
|
# File 'lib/nbuild/msbuild_cmd.rb', line 28
def msbuild2 params={}
msbuild_command params.merge(:framework_version => '2.0.50727')
end
|
#msbuild35(params) ⇒ Object
32
33
34
|
# File 'lib/nbuild/msbuild_cmd.rb', line 32
def msbuild35 params
msbuild_command params.merge(:framework_version => '3.5')
end
|
#msbuild4(params) ⇒ Object
36
37
38
|
# File 'lib/nbuild/msbuild_cmd.rb', line 36
def msbuild4 params
msbuild_command params.merge(:framework_version => '4.0.30319')
end
|
#msbuild_command(params = {}) ⇒ Object
24
25
26
|
# File 'lib/nbuild/msbuild_cmd.rb', line 24
def msbuild_command params={}
MSBuildCmd.new(params).execute
end
|
#msi_exec_cmd(params) ⇒ Object
28
29
30
|
# File 'lib/nbuild/msi_exec_cmd.rb', line 28
def msi_exec_cmd params
MsiExecCmd.new(params).execute
end
|
#mstest_command(params = {}) ⇒ Object
Also known as:
mstest
18
19
20
|
# File 'lib/nbuild/mstest_cmd.rb', line 18
def mstest_command params={}
MSTestCmd.new(params).execute
end
|
#ncache(params = {}) ⇒ Object
17
18
19
|
# File 'lib/nbuild/ncache_cmd.rb', line 17
def ncache params={}
NCacheCmd.new(params).execute
end
|
#ncover ⇒ Object
task :test_report do
ncover :cmd => NUnitCmd.new(:test_assembly => 'bin/TestAssembly.dll')
end
22
23
24
|
# File 'lib/nbuild/ncover_cmd.rb', line 22
def ncover
NCoverCmd.new(params).execute
end
|
#NCoverCmd(params = {}) ⇒ Object
15
16
17
|
# File 'lib/nbuild/ncover_cmd.rb', line 15
def NCoverCmd params={}
ncover params
end
|
#ndepend(params = {}) ⇒ Object
16
17
18
|
# File 'lib/nbuild/ndepend_cmd.rb', line 16
def ndepend params={}
NDependCmd.new(params).execute
end
|
#nunit(params = {}) ⇒ Object
for example: task :test_report do
nunit :test_assembly => 'bin/TestAssembly.dll'
end
19
20
21
|
# File 'lib/nbuild/nunit_cmd.rb', line 19
def nunit params={}
NUnitCmd.new(params).execute
end
|
#tfs ⇒ Object
31
32
33
|
# File 'lib/nbuild/tf.rb', line 31
def tfs
TFS.new
end
|
#uninstall_msi(params = {}) ⇒ Object
36
37
38
|
# File 'lib/nbuild/msi_exec_cmd.rb', line 36
def uninstall_msi params={}
MsiExecCmd.new(params.merge(:uninstall => true)).execute
end
|
#vs2008(params = {}) ⇒ Object
31
32
33
|
# File 'lib/nbuild/visual_studio_cmd.rb', line 31
def vs2008 params={}
VisualStudioCmd.new(params.merge(:version => '9.0')).execute
end
|