albacore 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +4 -4
- data/.bundle/config +2 -2
- data/.rvmrc +1 -1
- data/Gemfile +12 -12
- data/README.markdown +92 -68
- data/VERSION +1 -1
- data/lib/albacore.rb +9 -9
- data/lib/albacore/albacoretask.rb +50 -50
- data/lib/albacore/aspnetcompiler.rb +58 -58
- data/lib/albacore/assemblyinfo.rb +140 -140
- data/lib/albacore/assemblyinfolanguages/cppcliengine.rb +17 -0
- data/lib/albacore/assemblyinfolanguages/csharpengine.rb +18 -18
- data/lib/albacore/assemblyinfolanguages/vbnetengine.rb +18 -18
- data/lib/albacore/config/aspnetcompilerconfig.rb +29 -29
- data/lib/albacore/config/assemblyinfoconfig.rb +13 -13
- data/lib/albacore/config/config.rb +22 -22
- data/lib/albacore/config/cscconfig.rb +28 -28
- data/lib/albacore/config/docuconfig.rb +23 -23
- data/lib/albacore/config/execconfig.rb +15 -15
- data/lib/albacore/config/fluentmigratorrunnerconfig.rb +15 -15
- data/lib/albacore/config/msbuildconfig.rb +29 -29
- data/lib/albacore/config/mspectestrunnerconfig.rb +15 -15
- data/lib/albacore/config/mstesttestrunnerconfig.rb +15 -15
- data/lib/albacore/config/nantconfig.rb +15 -15
- data/lib/albacore/config/nchurnconfig.rb +15 -15
- data/lib/albacore/config/ncoverconsoleconfig.rb +15 -15
- data/lib/albacore/config/ncoverreportconfig.rb +15 -15
- data/lib/albacore/config/ndependconfig.rb +15 -15
- data/lib/albacore/config/netversion.rb +21 -21
- data/lib/albacore/config/nugetpackconfig.rb +3 -3
- data/lib/albacore/config/nugetpublishconfig.rb +19 -0
- data/lib/albacore/config/nugetpushconfig.rb +19 -0
- data/lib/albacore/config/nunittestrunnerconfig.rb +14 -14
- data/lib/albacore/config/specflowreportconfig.rb +24 -24
- data/lib/albacore/config/sqlcmdconfig.rb +15 -15
- data/lib/albacore/config/unzipconfig.rb +15 -15
- data/lib/albacore/config/vssgetconfig.rb +14 -0
- data/lib/albacore/config/xbuildconfig.rb +15 -15
- data/lib/albacore/config/xunittestrunnerconfig.rb +15 -15
- data/lib/albacore/config/zipdirectoryconfig.rb +15 -15
- data/lib/albacore/csc.rb +66 -62
- data/lib/albacore/docu.rb +41 -41
- data/lib/albacore/exec.rb +18 -18
- data/lib/albacore/fluentmigratorrunner.rb +51 -46
- data/lib/albacore/msbuild.rb +55 -55
- data/lib/albacore/mspectestrunner.rb +50 -50
- data/lib/albacore/mstesttestrunner.rb +43 -43
- data/lib/albacore/nant.rb +38 -38
- data/lib/albacore/nchurn.rb +74 -74
- data/lib/albacore/ncoverconsole.rb +68 -68
- data/lib/albacore/ncoverreport.rb +62 -62
- data/lib/albacore/ncoverreports/assemblyfilter.rb +9 -9
- data/lib/albacore/ncoverreports/branchcoverage.rb +9 -9
- data/lib/albacore/ncoverreports/classfilter.rb +9 -9
- data/lib/albacore/ncoverreports/codecoveragebase.rb +25 -25
- data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +23 -23
- data/lib/albacore/ncoverreports/documentfilter.rb +9 -9
- data/lib/albacore/ncoverreports/fullcoveragereport.rb +13 -13
- data/lib/albacore/ncoverreports/methodcoverage.rb +9 -9
- data/lib/albacore/ncoverreports/methodfilter.rb +9 -9
- data/lib/albacore/ncoverreports/namespacefilter.rb +9 -9
- data/lib/albacore/ncoverreports/reportfilterbase.rb +26 -26
- data/lib/albacore/ncoverreports/summaryreport.rb +18 -18
- data/lib/albacore/ncoverreports/symbolcoverage.rb +9 -9
- data/lib/albacore/ndepend.rb +33 -33
- data/lib/albacore/nugetpublish.rb +47 -0
- data/lib/albacore/nugetpush.rb +46 -0
- data/lib/albacore/nunittestrunner.rb +41 -41
- data/lib/albacore/nuspec.rb +133 -109
- data/lib/albacore/output.rb +99 -99
- data/lib/albacore/plink.rb +47 -47
- data/lib/albacore/specflowreport.rb +62 -62
- data/lib/albacore/sqlcmd.rb +80 -80
- data/lib/albacore/support/attrmethods.rb +33 -33
- data/lib/albacore/support/createtask.rb +50 -30
- data/lib/albacore/support/failure.rb +15 -15
- data/lib/albacore/support/logging.rb +38 -38
- data/lib/albacore/support/openstruct.rb +13 -13
- data/lib/albacore/support/runcommand.rb +45 -45
- data/lib/albacore/support/supportlinux.rb +23 -23
- data/lib/albacore/support/updateattributes.rb +13 -13
- data/lib/albacore/support/yamlconfig.rb +18 -18
- data/lib/albacore/unzip.rb +28 -28
- data/lib/albacore/vssget.rb +44 -0
- data/lib/albacore/xbuild.rb +54 -54
- data/lib/albacore/xunittestrunner.rb +52 -52
- data/lib/albacore/zipdirectory.rb +105 -105
- data/rakefile.rb +297 -297
- data/spec/albacoremodel_spec.rb +53 -53
- data/spec/assemblyinfo_spec.rb +541 -541
- data/spec/attrmethods_spec.rb +136 -136
- data/spec/config_spec.rb +34 -34
- data/spec/createtask_spec.rb +236 -236
- data/spec/csc_spec.rb +253 -253
- data/spec/docu_spec.rb +109 -109
- data/spec/exec_spec.rb +45 -45
- data/spec/fluentmigratorrunner_spec.rb +254 -185
- data/spec/msbuild_spec.rb +215 -215
- data/spec/mspec_spec.rb +28 -28
- data/spec/mstesttestrunner_spec.rb +142 -142
- data/spec/nant_spec.rb +110 -110
- data/spec/nchurn_spec.rb +75 -75
- data/spec/ncoverconsole_spec.rb +353 -353
- data/spec/ncoverreport_spec.rb +619 -619
- data/spec/ndepend_spec.rb +72 -72
- data/spec/nunittestrunner_spec.rb +122 -122
- data/spec/nuspec_spec.rb +78 -78
- data/spec/patches/docu_patch.rb +12 -12
- data/spec/patches/fail_patch.rb +8 -8
- data/spec/patches/system_patch.rb +20 -20
- data/spec/plink_spec.rb +62 -62
- data/spec/runcommand_spec.rb +94 -94
- data/spec/spec_helper.rb +17 -17
- data/spec/specflowreport_spec.rb +146 -146
- data/spec/sqlcmd_spec.rb +334 -334
- data/spec/support/assemblyinfotester.rb +51 -51
- data/spec/support/ironruby_validator.rb +26 -26
- data/spec/support/msbuildtestdata.rb +32 -32
- data/spec/support/nanttestdata.rb +33 -33
- data/spec/support/ncoverconsoletestdata.rb +19 -19
- data/spec/support/ncoverreporttestdata.rb +26 -26
- data/spec/support/nokogiri_validator.rb +15 -15
- data/spec/support/outputtestdata.rb +12 -12
- data/spec/support/ziptestdata.rb +12 -12
- data/spec/unzip_spec.rb +15 -15
- data/spec/xbuild_spec.rb +15 -15
- data/spec/xunit_spec.rb +168 -168
- data/spec/yamlconfig_spec.rb +49 -49
- data/spec/zip_spec.rb +104 -104
- data/watchrtesting.rb +8 -8
- metadata +15 -119
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/support/openstruct'
|
3
|
+
|
4
|
+
module Configuration
|
5
|
+
module Vss
|
6
|
+
include Albacore::Configuration
|
7
|
+
|
8
|
+
def vss
|
9
|
+
@vssconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
yield(@vssconfig) if block_given?
|
11
|
+
@vssconfig
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -1,15 +1,15 @@
|
|
1
|
-
require 'ostruct'
|
2
|
-
require 'albacore/support/openstruct'
|
3
|
-
|
4
|
-
module Configuration
|
5
|
-
module XBuild
|
6
|
-
include Albacore::Configuration
|
7
|
-
|
8
|
-
def xbuild
|
9
|
-
@xbuildconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
-
yield(@xbuildconfig) if block_given?
|
11
|
-
@xbuildconfig
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/support/openstruct'
|
3
|
+
|
4
|
+
module Configuration
|
5
|
+
module XBuild
|
6
|
+
include Albacore::Configuration
|
7
|
+
|
8
|
+
def xbuild
|
9
|
+
@xbuildconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
yield(@xbuildconfig) if block_given?
|
11
|
+
@xbuildconfig
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
@@ -1,15 +1,15 @@
|
|
1
|
-
require 'ostruct'
|
2
|
-
require 'albacore/support/openstruct'
|
3
|
-
|
4
|
-
module Configuration
|
5
|
-
module XUnit
|
6
|
-
include Albacore::Configuration
|
7
|
-
|
8
|
-
def xunit
|
9
|
-
@xunitconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
-
yield(@xunitconfig) if block_given?
|
11
|
-
@xunitconfig
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/support/openstruct'
|
3
|
+
|
4
|
+
module Configuration
|
5
|
+
module XUnit
|
6
|
+
include Albacore::Configuration
|
7
|
+
|
8
|
+
def xunit
|
9
|
+
@xunitconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
yield(@xunitconfig) if block_given?
|
11
|
+
@xunitconfig
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
@@ -1,15 +1,15 @@
|
|
1
|
-
require 'ostruct'
|
2
|
-
require 'albacore/support/openstruct'
|
3
|
-
|
4
|
-
module Configuration
|
5
|
-
module Zip
|
6
|
-
include Albacore::Configuration
|
7
|
-
|
8
|
-
def zip
|
9
|
-
@zipconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
-
yield(@zipconfig) if block_given?
|
11
|
-
@zipconfig
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/support/openstruct'
|
3
|
+
|
4
|
+
module Configuration
|
5
|
+
module Zip
|
6
|
+
include Albacore::Configuration
|
7
|
+
|
8
|
+
def zip
|
9
|
+
@zipconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
yield(@zipconfig) if block_given?
|
11
|
+
@zipconfig
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
data/lib/albacore/csc.rb
CHANGED
@@ -1,62 +1,66 @@
|
|
1
|
-
require 'albacore/albacoretask'
|
2
|
-
require 'albacore/config/cscconfig'
|
3
|
-
require 'albacore/support/supportlinux'
|
4
|
-
|
5
|
-
class CSC
|
6
|
-
include Albacore::Task
|
7
|
-
include Albacore::RunCommand
|
8
|
-
include Configuration::CSC
|
9
|
-
include SupportsLinuxEnvironment
|
10
|
-
|
11
|
-
attr_accessor :output, :target, :optimize, :debug, :doc, :main
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
params
|
23
|
-
params << @
|
24
|
-
|
25
|
-
|
26
|
-
params << "/
|
27
|
-
params << "/
|
28
|
-
params <<
|
29
|
-
params << "/
|
30
|
-
params <<
|
31
|
-
params <<
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
when
|
51
|
-
"/debug
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
1
|
+
require 'albacore/albacoretask'
|
2
|
+
require 'albacore/config/cscconfig'
|
3
|
+
require 'albacore/support/supportlinux'
|
4
|
+
|
5
|
+
class CSC
|
6
|
+
include Albacore::Task
|
7
|
+
include Albacore::RunCommand
|
8
|
+
include Configuration::CSC
|
9
|
+
include SupportsLinuxEnvironment
|
10
|
+
|
11
|
+
attr_accessor :output, :target, :optimize, :debug, :doc, :main,
|
12
|
+
:keyfile, :keycontainer, :delaysign # strong name flags
|
13
|
+
attr_array :compile, :references, :resources, :define
|
14
|
+
|
15
|
+
def initialize
|
16
|
+
@optimize = false
|
17
|
+
super()
|
18
|
+
update_attributes csc.to_hash
|
19
|
+
end
|
20
|
+
|
21
|
+
def execute
|
22
|
+
params = []
|
23
|
+
params << @references.map{|r| format_reference(r)} unless @references.nil?
|
24
|
+
params << @resources.map{|r| format_resource(r)} unless @resources.nil?
|
25
|
+
params << main_entry unless @main.nil?
|
26
|
+
params << "\"/out:#{@output}\"" unless @output.nil?
|
27
|
+
params << "/target:#{@target}" unless @target.nil?
|
28
|
+
params << "/optimize+" if @optimize
|
29
|
+
params << "\"/keyfile:#{@keyfile}\"" unless @keyfile.nil?
|
30
|
+
params << "\"/keycontainer:#{@keycontainer}\"" unless @keycontainer.nil?
|
31
|
+
params << "/delaysign+" if @delaysign
|
32
|
+
params << get_debug_param unless @debug.nil?
|
33
|
+
params << "/doc:#{@doc}" unless @doc.nil?
|
34
|
+
params << get_define_params unless @define.nil?
|
35
|
+
params << @compile.map{|f| format_path(f)} unless @compile.nil?
|
36
|
+
|
37
|
+
result = run_command "CSC", params
|
38
|
+
|
39
|
+
failure_message = 'CSC Failed. See Build Log For Detail'
|
40
|
+
fail_with_message failure_message if !result
|
41
|
+
end
|
42
|
+
|
43
|
+
def get_define_params
|
44
|
+
symbols = @define.join(";")
|
45
|
+
"/define:#{symbols}"
|
46
|
+
end
|
47
|
+
|
48
|
+
def get_debug_param
|
49
|
+
case @debug
|
50
|
+
when true
|
51
|
+
"/debug"
|
52
|
+
when :full
|
53
|
+
"/debug:full"
|
54
|
+
when :pdbonly
|
55
|
+
"/debug:pdbonly"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def main_entry
|
60
|
+
"/main:#{@main}"
|
61
|
+
end
|
62
|
+
|
63
|
+
def format_resource(resource)
|
64
|
+
"/res:#{resource}"
|
65
|
+
end
|
66
|
+
end
|
data/lib/albacore/docu.rb
CHANGED
@@ -1,41 +1,41 @@
|
|
1
|
-
require 'albacore/albacoretask'
|
2
|
-
require 'albacore/config/docuconfig'
|
3
|
-
|
4
|
-
class Docu
|
5
|
-
include Albacore::Task
|
6
|
-
include Albacore::RunCommand
|
7
|
-
include Configuration::Docu
|
8
|
-
|
9
|
-
attr_accessor :output_location
|
10
|
-
attr_array :assemblies, :xml_files
|
11
|
-
|
12
|
-
def initialize(command=nil)
|
13
|
-
@assemblies = []
|
14
|
-
@xml_files = []
|
15
|
-
@output_location = ""
|
16
|
-
super()
|
17
|
-
update_attributes docu.to_hash
|
18
|
-
@command = command unless command.nil?
|
19
|
-
end
|
20
|
-
|
21
|
-
def execute
|
22
|
-
if @assemblies.empty?
|
23
|
-
fail_with_message 'Docu Failed. No assemblies specified'
|
24
|
-
return
|
25
|
-
end
|
26
|
-
|
27
|
-
command_params = get_command_parameters
|
28
|
-
success = run_command 'Docu', command_params.join(' ')
|
29
|
-
|
30
|
-
fail_with_message 'Docu Failed. See Build Log For Detail' unless success
|
31
|
-
end
|
32
|
-
|
33
|
-
private
|
34
|
-
def get_command_parameters
|
35
|
-
command_params = []
|
36
|
-
command_params << @assemblies.join(' ') unless @assemblies.nil?
|
37
|
-
command_params << @xml_files.join(' ') unless @xml_files.nil?
|
38
|
-
command_params << " --output=\"#{@output_location}\" " unless @output_location.empty?
|
39
|
-
command_params
|
40
|
-
end
|
41
|
-
end
|
1
|
+
require 'albacore/albacoretask'
|
2
|
+
require 'albacore/config/docuconfig'
|
3
|
+
|
4
|
+
class Docu
|
5
|
+
include Albacore::Task
|
6
|
+
include Albacore::RunCommand
|
7
|
+
include Configuration::Docu
|
8
|
+
|
9
|
+
attr_accessor :output_location
|
10
|
+
attr_array :assemblies, :xml_files
|
11
|
+
|
12
|
+
def initialize(command=nil)
|
13
|
+
@assemblies = []
|
14
|
+
@xml_files = []
|
15
|
+
@output_location = ""
|
16
|
+
super()
|
17
|
+
update_attributes docu.to_hash
|
18
|
+
@command = command unless command.nil?
|
19
|
+
end
|
20
|
+
|
21
|
+
def execute
|
22
|
+
if @assemblies.empty?
|
23
|
+
fail_with_message 'Docu Failed. No assemblies specified'
|
24
|
+
return
|
25
|
+
end
|
26
|
+
|
27
|
+
command_params = get_command_parameters
|
28
|
+
success = run_command 'Docu', command_params.join(' ')
|
29
|
+
|
30
|
+
fail_with_message 'Docu Failed. See Build Log For Detail' unless success
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
def get_command_parameters
|
35
|
+
command_params = []
|
36
|
+
command_params << @assemblies.join(' ') unless @assemblies.nil?
|
37
|
+
command_params << @xml_files.join(' ') unless @xml_files.nil?
|
38
|
+
command_params << " --output=\"#{@output_location}\" " unless @output_location.empty?
|
39
|
+
command_params
|
40
|
+
end
|
41
|
+
end
|
data/lib/albacore/exec.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
require 'albacore/albacoretask'
|
2
|
-
|
3
|
-
class Exec
|
4
|
-
include Albacore::Task
|
5
|
-
include Albacore::RunCommand
|
6
|
-
|
7
|
-
def initialize
|
8
|
-
super()
|
9
|
-
update_attributes Albacore.configuration.exec.to_hash
|
10
|
-
end
|
11
|
-
|
12
|
-
def execute
|
13
|
-
result = run_command "Exec"
|
14
|
-
|
15
|
-
failure_message = 'Exec Failed. See Build Log For Detail'
|
16
|
-
fail_with_message failure_message if !result
|
17
|
-
end
|
18
|
-
end
|
1
|
+
require 'albacore/albacoretask'
|
2
|
+
|
3
|
+
class Exec
|
4
|
+
include Albacore::Task
|
5
|
+
include Albacore::RunCommand
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
super()
|
9
|
+
update_attributes Albacore.configuration.exec.to_hash
|
10
|
+
end
|
11
|
+
|
12
|
+
def execute
|
13
|
+
result = run_command "Exec"
|
14
|
+
|
15
|
+
failure_message = 'Exec Failed. See Build Log For Detail'
|
16
|
+
fail_with_message failure_message if !result
|
17
|
+
end
|
18
|
+
end
|
@@ -1,46 +1,51 @@
|
|
1
|
-
require 'albacore/albacoretask'
|
2
|
-
|
3
|
-
class FluentMigratorRunner
|
4
|
-
TaskName = :fluentmigrator
|
5
|
-
include Albacore::Task
|
6
|
-
include Albacore::RunCommand
|
7
|
-
|
8
|
-
attr_accessor :target, :provider, :connection, :namespace, :output, :preview, :steps, :task, :version, :verbose, :script_directory, :profile, :timeout
|
9
|
-
|
10
|
-
def initialize(command=nil)
|
11
|
-
super()
|
12
|
-
update_attributes Albacore.configuration.fluentmigrator.to_hash
|
13
|
-
@command = command unless command.nil?
|
14
|
-
end
|
15
|
-
|
16
|
-
def get_command_line
|
17
|
-
commandline = "#{@command}"
|
18
|
-
commandline << get_command_parameters
|
19
|
-
@logger.debug "Build FuentMigrator Test Runner Command Line: " + commandline
|
20
|
-
commandline
|
21
|
-
end
|
22
|
-
|
23
|
-
def get_command_parameters
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
1
|
+
require 'albacore/albacoretask'
|
2
|
+
|
3
|
+
class FluentMigratorRunner
|
4
|
+
TaskName = :fluentmigrator
|
5
|
+
include Albacore::Task
|
6
|
+
include Albacore::RunCommand
|
7
|
+
|
8
|
+
attr_accessor :target, :provider, :connection, :namespace, :output, :output_filename, :preview, :steps, :task, :version, :verbose, :script_directory, :profile, :timeout, :show_help
|
9
|
+
|
10
|
+
def initialize(command=nil)
|
11
|
+
super()
|
12
|
+
update_attributes Albacore.configuration.fluentmigrator.to_hash
|
13
|
+
@command = command unless command.nil?
|
14
|
+
end
|
15
|
+
|
16
|
+
def get_command_line
|
17
|
+
commandline = "#{@command}"
|
18
|
+
commandline << get_command_parameters
|
19
|
+
@logger.debug "Build FuentMigrator Test Runner Command Line: " + commandline
|
20
|
+
commandline
|
21
|
+
end
|
22
|
+
|
23
|
+
def get_command_parameters
|
24
|
+
if @show_help
|
25
|
+
params = " /?"
|
26
|
+
else
|
27
|
+
params = " /target=\"#{@target}\""
|
28
|
+
params << " /provider=#{@provider}"
|
29
|
+
params << " /connection=\"#{@connection}\""
|
30
|
+
params << " /ns=#{@namespace}" unless @namespace.nil?
|
31
|
+
params << " /out" if @output == true
|
32
|
+
params << " /outfile=\"#{@output_filename}\"" unless @output_filename.nil?
|
33
|
+
params << " /preview" if @preview == true
|
34
|
+
params << " /steps=#{@steps}" unless @steps.nil?
|
35
|
+
params << " /task=#{@task}" unless @task.nil?
|
36
|
+
params << " /version=#{@version}" unless @version.nil?
|
37
|
+
params << " /verbose=#{@verbose}" if @verbose == true
|
38
|
+
params << " /wd=\"#{@script_directory}\"" unless @script_directory.nil?
|
39
|
+
params << " /profile=#{@profile}" unless @profile.nil?
|
40
|
+
params << " /timeout=#{@timeout}" unless @timeout.nil?
|
41
|
+
end
|
42
|
+
params
|
43
|
+
end
|
44
|
+
|
45
|
+
def execute()
|
46
|
+
result = run_command "FluentMigrator", get_command_parameters
|
47
|
+
|
48
|
+
failure_message = "FluentMigrator failed. See build log for detail."
|
49
|
+
fail_with_message failure_message if !result
|
50
|
+
end
|
51
|
+
end
|