fluent_command_builder 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/lib/fluent_command_builder.rb +3 -0
  2. data/lib/fluent_command_builder/command_base.rb +21 -10
  3. data/lib/fluent_command_builder/command_builders/appcfg_python.rb +1 -1
  4. data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +995 -994
  5. data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +991 -990
  6. data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +1 -1
  7. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +30 -29
  8. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +30 -29
  9. data/lib/fluent_command_builder/command_builders/bundle.rb +1 -1
  10. data/lib/fluent_command_builder/command_builders/bundle_11.rb +102 -101
  11. data/lib/fluent_command_builder/command_builders/cucumber.rb +1 -1
  12. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +60 -59
  13. data/lib/fluent_command_builder/command_builders/cucumber_12.rb +62 -61
  14. data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +1 -1
  15. data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +72 -71
  16. data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +72 -71
  17. data/lib/fluent_command_builder/command_builders/dotcover.rb +1 -1
  18. data/lib/fluent_command_builder/command_builders/dotcover_10.rb +17 -16
  19. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +101 -100
  20. data/lib/fluent_command_builder/command_builders/dotcover_12.rb +101 -100
  21. data/lib/fluent_command_builder/command_builders/dotcover_20.rb +105 -104
  22. data/lib/fluent_command_builder/command_builders/installutil.rb +1 -1
  23. data/lib/fluent_command_builder/command_builders/installutil_11.rb +15 -14
  24. data/lib/fluent_command_builder/command_builders/installutil_20.rb +17 -16
  25. data/lib/fluent_command_builder/command_builders/installutil_35.rb +17 -16
  26. data/lib/fluent_command_builder/command_builders/installutil_40.rb +20 -19
  27. data/lib/fluent_command_builder/command_builders/msbuild.rb +1 -1
  28. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +27 -26
  29. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +27 -26
  30. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +43 -42
  31. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +46 -45
  32. data/lib/fluent_command_builder/command_builders/msdeploy.rb +1 -1
  33. data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +61 -60
  34. data/lib/fluent_command_builder/command_builders/mstest.rb +1 -1
  35. data/lib/fluent_command_builder/command_builders/mstest_100.rb +41 -40
  36. data/lib/fluent_command_builder/command_builders/mstest_80.rb +33 -32
  37. data/lib/fluent_command_builder/command_builders/mstest_90.rb +35 -34
  38. data/lib/fluent_command_builder/command_builders/netsh.rb +1 -1
  39. data/lib/fluent_command_builder/command_builders/netsh_61.rb +139 -138
  40. data/lib/fluent_command_builder/command_builders/nuget.rb +17 -0
  41. data/lib/fluent_command_builder/command_builders/nuget_20.rb +433 -0
  42. data/lib/fluent_command_builder/command_builders/nunit.rb +1 -1
  43. data/lib/fluent_command_builder/command_builders/nunit_25.rb +50 -49
  44. data/lib/fluent_command_builder/command_builders/nunit_26.rb +66 -65
  45. data/lib/fluent_command_builder/command_builders/rake.rb +1 -1
  46. data/lib/fluent_command_builder/command_builders/rake_09.rb +48 -47
  47. data/lib/fluent_command_builder/command_builders/security_osx.rb +1 -1
  48. data/lib/fluent_command_builder/command_builders/security_osx_107.rb +55 -54
  49. data/lib/fluent_command_builder/command_builders/sevenzip.rb +1 -1
  50. data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +211 -210
  51. data/lib/fluent_command_builder/command_builders/simian.rb +1 -1
  52. data/lib/fluent_command_builder/command_builders/simian_23.rb +47 -46
  53. data/lib/fluent_command_builder/command_builders/team_foundation.rb +1 -1
  54. data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +822 -821
  55. data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +1 -1
  56. data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +744 -743
  57. data/lib/fluent_command_builder/command_builders/xcodebuild.rb +1 -1
  58. data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +103 -87
  59. data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +123 -107
  60. data/lib/fluent_command_builder/executor.rb +44 -0
  61. data/lib/fluent_command_builder/executors/backticks_executor.rb +7 -0
  62. data/lib/fluent_command_builder/executors/dry_run_executor.rb +7 -0
  63. data/lib/fluent_command_builder/executors/rake_sh_executor.rb +10 -0
  64. data/lib/fluent_command_builder/executors/system_executor.rb +7 -0
  65. data/lib/fluent_command_builder/path_finder.rb +20 -0
  66. data/lib/fluent_command_builder/path_finders/unix_path_finder.rb +13 -0
  67. data/lib/fluent_command_builder/path_finders/windows_path_finder.rb +14 -0
  68. data/lib/fluent_command_builder/underlying_builder.rb +75 -59
  69. data/lib/fluent_command_builder/version.rb +40 -0
  70. data/lib/fluent_command_builder/version_detectors/lib/appengine_python_version_detector.rb +1 -2
  71. data/lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb +13 -13
  72. data/lib/fluent_command_builder/version_validator.rb +37 -0
  73. metadata +16 -7
  74. data/lib/command_version_detector.rb +0 -1
  75. data/lib/fluent_command_builder/util.rb +0 -18
  76. data/lib/fluent_command_builder/version_detectors/lib/path_finder.rb +0 -43
@@ -7,6 +7,7 @@ module FluentCommandBuilder
7
7
  end
8
8
  module MSBuild
9
9
  module V40
10
+ VERSION = '4.0'
10
11
  def self.create(project_file=nil)
11
12
  b = UnderlyingBuilder.new FluentCommandBuilder::MSBuild::COMMAND_NAME
12
13
  c = MSBuild.new(b, project_file)
@@ -19,110 +20,110 @@ module FluentCommandBuilder
19
20
  class MSBuild < CommandBase
20
21
  def initialize(underlying_builder, project_file=nil)
21
22
  super underlying_builder
22
- b.append " #{b.format project_file}" unless project_file.nil?
23
+ @b.append " #{@b.format project_file}" unless project_file.nil?
23
24
  end
24
25
  def help
25
- b.append ' /help'
26
- yield b if block_given?
26
+ @b.append ' /help'
27
+ yield @b if block_given?
27
28
  self
28
29
  end
29
30
  def no_logo
30
- b.append ' /noLogo'
31
- yield b if block_given?
31
+ @b.append ' /noLogo'
32
+ yield @b if block_given?
32
33
  self
33
34
  end
34
35
  def version
35
- b.append ' /version'
36
- yield b if block_given?
36
+ @b.append ' /version'
37
+ yield @b if block_given?
37
38
  self
38
39
  end
39
40
  def file(file)
40
- b.append " @#{b.format file}"
41
- yield b if block_given?
41
+ @b.append " @#{@b.format file}"
42
+ yield @b if block_given?
42
43
  self
43
44
  end
44
45
  def no_auto_response
45
- b.append ' /noAutoResponse'
46
- yield b if block_given?
46
+ @b.append ' /noAutoResponse'
47
+ yield @b if block_given?
47
48
  self
48
49
  end
49
50
  def target(target)
50
- b.append " /target:#{b.format target, ';'}"
51
- yield b if block_given?
51
+ @b.append " /target:#{@b.format target, ';'}"
52
+ yield @b if block_given?
52
53
  self
53
54
  end
54
55
  def property(property)
55
- b.append " /property:#{b.format property, ';', '='}"
56
- yield b if block_given?
56
+ @b.append " /property:#{@b.format property, ';', '='}"
57
+ yield @b if block_given?
57
58
  self
58
59
  end
59
60
  def logger(logger)
60
- b.append " /logger:#{b.format logger}"
61
- yield b if block_given?
61
+ @b.append " /logger:#{@b.format logger}"
62
+ yield @b if block_given?
62
63
  self
63
64
  end
64
65
  def distributed_logger(logger)
65
- b.append " /distributedLogger:#{b.format logger}"
66
- yield b if block_given?
66
+ @b.append " /distributedLogger:#{@b.format logger}"
67
+ yield @b if block_given?
67
68
  self
68
69
  end
69
70
  def console_logger_parameters(parameters)
70
- b.append " /consoleLoggerParameters:#{b.format parameters}"
71
- yield b if block_given?
71
+ @b.append " /consoleLoggerParameters:#{@b.format parameters}"
72
+ yield @b if block_given?
72
73
  self
73
74
  end
74
75
  def verbosity(level)
75
- b.append " /verbosity:#{b.format level}"
76
- yield b if block_given?
76
+ @b.append " /verbosity:#{@b.format level}"
77
+ yield @b if block_given?
77
78
  self
78
79
  end
79
80
  def no_console_logger
80
- b.append ' /noConsoleLogger'
81
- yield b if block_given?
81
+ @b.append ' /noConsoleLogger'
82
+ yield @b if block_given?
82
83
  self
83
84
  end
84
85
  def validate(schema=nil)
85
- b.append ' /validate'
86
- b.append ":#{b.format schema}" unless schema.nil?
87
- yield b if block_given?
86
+ @b.append ' /validate'
87
+ @b.append ":#{@b.format schema}" unless schema.nil?
88
+ yield @b if block_given?
88
89
  self
89
90
  end
90
91
  def max_cpu_count(number)
91
- b.append " /maxCpuCount:#{b.format number}"
92
- yield b if block_given?
92
+ @b.append " /maxCpuCount:#{@b.format number}"
93
+ yield @b if block_given?
93
94
  self
94
95
  end
95
96
  def ignore_project_extensions(extensions)
96
- b.append " /ignoreProjectExtensions:#{b.format extensions, ';'}"
97
- yield b if block_given?
97
+ @b.append " /ignoreProjectExtensions:#{@b.format extensions, ';'}"
98
+ yield @b if block_given?
98
99
  self
99
100
  end
100
101
  def file_logger(n=nil)
101
- b.append ' /fileLogger'
102
- b.append "#{b.format n}" unless n.nil?
103
- yield b if block_given?
102
+ @b.append ' /fileLogger'
103
+ @b.append "#{@b.format n}" unless n.nil?
104
+ yield @b if block_given?
104
105
  self
105
106
  end
106
107
  def distributed_file_logger
107
- b.append ' /distributedFileLogger'
108
- yield b if block_given?
108
+ @b.append ' /distributedFileLogger'
109
+ yield @b if block_given?
109
110
  self
110
111
  end
111
112
  def file_logger_parameters(parameters, n=nil)
112
- b.append ' /fileLoggerParameters'
113
- b.append "#{b.format n}" unless n.nil?
114
- b.append ":#{b.format parameters, ';', '='}"
115
- yield b if block_given?
113
+ @b.append ' /fileLoggerParameters'
114
+ @b.append "#{@b.format n}" unless n.nil?
115
+ @b.append ":#{@b.format parameters, ';', '='}"
116
+ yield @b if block_given?
116
117
  self
117
118
  end
118
119
  def tools_version(version)
119
- b.append " /toolsVersion:#{b.format version}"
120
- yield b if block_given?
120
+ @b.append " /toolsVersion:#{@b.format version}"
121
+ yield @b if block_given?
121
122
  self
122
123
  end
123
124
  def node_reuse(parameters)
124
- b.append " /nodeReuse:#{b.format parameters}"
125
- yield b if block_given?
125
+ @b.append " /nodeReuse:#{@b.format parameters}"
126
+ yield @b if block_given?
126
127
  self
127
128
  end
128
129
  end
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
2
- require File.expand_path(File.dirname(__FILE__) + '/../util')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../version')
3
3
 
4
4
  module FluentCommandBuilder
5
5
  def msdeploy(&block)
@@ -7,6 +7,7 @@ module FluentCommandBuilder
7
7
  end
8
8
  module MSDeploy
9
9
  module V71
10
+ VERSION = '7.1'
10
11
  def self.create
11
12
  b = UnderlyingBuilder.new FluentCommandBuilder::MSDeploy::COMMAND_NAME
12
13
  c = MSDeploy.new(b)
@@ -21,153 +22,153 @@ module FluentCommandBuilder
21
22
  super underlying_builder
22
23
  end
23
24
  def allow_untrusted(bool)
24
- b.append " -allowUntrusted:#{b.format bool}"
25
- yield b if block_given?
25
+ @b.append " -allowUntrusted:#{@b.format bool}"
26
+ yield @b if block_given?
26
27
  self
27
28
  end
28
29
  def app_host_config_dir(path)
29
- b.append " -appHostConfigDir:#{b.format path}"
30
- yield b if block_given?
30
+ @b.append " -appHostConfigDir:#{@b.format path}"
31
+ yield @b if block_given?
31
32
  self
32
33
  end
33
34
  def declare_param(param)
34
- b.append " -declareParam:#{b.format param, ',', '='}"
35
- yield b if block_given?
35
+ @b.append " -declareParam:#{@b.format param, ',', '='}"
36
+ yield @b if block_given?
36
37
  self
37
38
  end
38
39
  def declare_param_file(xml_file)
39
- b.append " -declareParamFile:#{b.format xml_file}"
40
- yield b if block_given?
40
+ @b.append " -declareParamFile:#{@b.format xml_file}"
41
+ yield @b if block_given?
41
42
  self
42
43
  end
43
44
  def dest(provider)
44
- b.append " -dest:#{b.format provider}"
45
- yield b if block_given?
45
+ @b.append " -dest:#{@b.format provider}"
46
+ yield @b if block_given?
46
47
  self
47
48
  end
48
49
  def disable_link(link_extension)
49
- b.append " -disableLink:#{b.format link_extension}"
50
- yield b if block_given?
50
+ @b.append " -disableLink:#{@b.format link_extension}"
51
+ yield @b if block_given?
51
52
  self
52
53
  end
53
54
  def disable_rule(rule)
54
- b.append " -disableRule:#{b.format rule, ','}"
55
- yield b if block_given?
55
+ @b.append " -disableRule:#{@b.format rule, ','}"
56
+ yield @b if block_given?
56
57
  self
57
58
  end
58
59
  def disable_skip_directive(skip_directive_name)
59
- b.append " -disableSkipDirective:#{b.format skip_directive_name}"
60
- yield b if block_given?
60
+ @b.append " -disableSkipDirective:#{@b.format skip_directive_name}"
61
+ yield @b if block_given?
61
62
  self
62
63
  end
63
64
  def enable_link(link_extension)
64
- b.append " -enableLink:#{b.format link_extension}"
65
- yield b if block_given?
65
+ @b.append " -enableLink:#{@b.format link_extension}"
66
+ yield @b if block_given?
66
67
  self
67
68
  end
68
69
  def enable_rule(rule)
69
- b.append " -enableRule:#{b.format rule, ','}"
70
- yield b if block_given?
70
+ @b.append " -enableRule:#{@b.format rule, ','}"
71
+ yield @b if block_given?
71
72
  self
72
73
  end
73
74
  def enable_skip_directive(skip_directive_name)
74
- b.append " -enableSkipDirective:#{b.format skip_directive_name}"
75
- yield b if block_given?
75
+ @b.append " -enableSkipDirective:#{@b.format skip_directive_name}"
76
+ yield @b if block_given?
76
77
  self
77
78
  end
78
79
  def post_sync(command)
79
- b.append " -postSync:#{b.format command}"
80
- yield b if block_given?
80
+ @b.append " -postSync:#{@b.format command}"
81
+ yield @b if block_given?
81
82
  self
82
83
  end
83
84
  def pre_sync(command)
84
- b.append " -preSync:#{b.format command}"
85
- yield b if block_given?
85
+ @b.append " -preSync:#{@b.format command}"
86
+ yield @b if block_given?
86
87
  self
87
88
  end
88
89
  def remove_param(param)
89
- b.append " -removeParam:#{b.format param}"
90
- yield b if block_given?
90
+ @b.append " -removeParam:#{@b.format param}"
91
+ yield @b if block_given?
91
92
  self
92
93
  end
93
94
  def replace(arg)
94
- b.append " -replace:#{b.format arg}"
95
- yield b if block_given?
95
+ @b.append " -replace:#{@b.format arg}"
96
+ yield @b if block_given?
96
97
  self
97
98
  end
98
99
  def retry_attempts(number)
99
- b.append " -retryAttempts:#{b.format number}"
100
- yield b if block_given?
100
+ @b.append " -retryAttempts:#{@b.format number}"
101
+ yield @b if block_given?
101
102
  self
102
103
  end
103
104
  def retry_interval(milliseconds)
104
- b.append " -retryInterval:#{b.format milliseconds}"
105
- yield b if block_given?
105
+ @b.append " -retryInterval:#{@b.format milliseconds}"
106
+ yield @b if block_given?
106
107
  self
107
108
  end
108
109
  def set_param(param)
109
- b.append " -setParam:#{b.format param, ',', '='}"
110
- yield b if block_given?
110
+ @b.append " -setParam:#{@b.format param, ',', '='}"
111
+ yield @b if block_given?
111
112
  self
112
113
  end
113
114
  def set_param_file(xml_file)
114
- b.append " -setParamFile:#{b.format xml_file}"
115
- yield b if block_given?
115
+ @b.append " -setParamFile:#{@b.format xml_file}"
116
+ yield @b if block_given?
116
117
  self
117
118
  end
118
119
  def show_secure
119
- b.append ' -showSecure'
120
- yield b if block_given?
120
+ @b.append ' -showSecure'
121
+ yield @b if block_given?
121
122
  self
122
123
  end
123
124
  def skip(arg)
124
- b.append " -skip:#{b.format arg}"
125
- yield b if block_given?
125
+ @b.append " -skip:#{@b.format arg}"
126
+ yield @b if block_given?
126
127
  self
127
128
  end
128
129
  def source(provider)
129
- b.append " -source:#{b.format provider}"
130
- yield b if block_given?
130
+ @b.append " -source:#{@b.format provider}"
131
+ yield @b if block_given?
131
132
  self
132
133
  end
133
134
  def unicode
134
- b.append ' -unicode'
135
- yield b if block_given?
135
+ @b.append ' -unicode'
136
+ yield @b if block_given?
136
137
  self
137
138
  end
138
139
  def use_check_sum
139
- b.append ' -useCheckSum'
140
- yield b if block_given?
140
+ @b.append ' -useCheckSum'
141
+ yield @b if block_given?
141
142
  self
142
143
  end
143
144
  def verb(verb_name)
144
- b.append " -verb:#{b.format verb_name}"
145
- yield b if block_given?
145
+ @b.append " -verb:#{@b.format verb_name}"
146
+ yield @b if block_given?
146
147
  self
147
148
  end
148
149
  def verbose
149
- b.append ' -verbose'
150
- yield b if block_given?
150
+ @b.append ' -verbose'
151
+ yield @b if block_given?
151
152
  self
152
153
  end
153
154
  def web_server_dir(path)
154
- b.append " -webServerDir:#{b.format path}"
155
- yield b if block_given?
155
+ @b.append " -webServerDir:#{@b.format path}"
156
+ yield @b if block_given?
156
157
  self
157
158
  end
158
159
  def whatif
159
- b.append ' -whatif'
160
- yield b if block_given?
160
+ @b.append ' -whatif'
161
+ yield @b if block_given?
161
162
  self
162
163
  end
163
164
  def xml
164
- b.append ' -xml'
165
- yield b if block_given?
165
+ @b.append ' -xml'
166
+ yield @b if block_given?
166
167
  self
167
168
  end
168
169
  def xpath(path)
169
- b.append " -xpath:#{b.format path}"
170
- yield b if block_given?
170
+ @b.append " -xpath:#{@b.format path}"
171
+ yield @b if block_given?
171
172
  self
172
173
  end
173
174
  end
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
2
- require File.expand_path(File.dirname(__FILE__) + '/../util')
2
+ require File.expand_path(File.dirname(__FILE__) + '/../version')
3
3
 
4
4
  module FluentCommandBuilder
5
5
  def mstest(&block)
@@ -7,6 +7,7 @@ module FluentCommandBuilder
7
7
  end
8
8
  module MSTest
9
9
  module V100
10
+ VERSION = '10.0'
10
11
  def self.create
11
12
  b = UnderlyingBuilder.new FluentCommandBuilder::MSTest::COMMAND_NAME
12
13
  c = MSTest.new(b)
@@ -21,103 +22,103 @@ module FluentCommandBuilder
21
22
  super underlying_builder
22
23
  end
23
24
  def test_container(file_name)
24
- b.append " /testContainer:#{b.format file_name}"
25
- yield b if block_given?
25
+ @b.append " /testContainer:#{@b.format file_name}"
26
+ yield @b if block_given?
26
27
  self
27
28
  end
28
29
  def test_metadata(file_name)
29
- b.append " /testMetadata:#{b.format file_name}"
30
- yield b if block_given?
30
+ @b.append " /testMetadata:#{@b.format file_name}"
31
+ yield @b if block_given?
31
32
  self
32
33
  end
33
34
  def test_list(test_list_path)
34
- b.append " /testList:#{b.format test_list_path}"
35
- yield b if block_given?
35
+ @b.append " /testList:#{@b.format test_list_path}"
36
+ yield @b if block_given?
36
37
  self
37
38
  end
38
39
  def category(test_category_filter)
39
- b.append " /category:#{b.format test_category_filter}"
40
- yield b if block_given?
40
+ @b.append " /category:#{@b.format test_category_filter}"
41
+ yield @b if block_given?
41
42
  self
42
43
  end
43
44
  def test(test_name)
44
- b.append " /test:#{b.format test_name}"
45
- yield b if block_given?
45
+ @b.append " /test:#{@b.format test_name}"
46
+ yield @b if block_given?
46
47
  self
47
48
  end
48
49
  def no_isolation
49
- b.append ' /noIsolation'
50
- yield b if block_given?
50
+ @b.append ' /noIsolation'
51
+ yield @b if block_given?
51
52
  self
52
53
  end
53
54
  def test_settings(file_name)
54
- b.append " /testSettings:#{b.format file_name}"
55
- yield b if block_given?
55
+ @b.append " /testSettings:#{@b.format file_name}"
56
+ yield @b if block_given?
56
57
  self
57
58
  end
58
59
  def run_config(file_name)
59
- b.append " /runConfig:#{b.format file_name}"
60
- yield b if block_given?
60
+ @b.append " /runConfig:#{@b.format file_name}"
61
+ yield @b if block_given?
61
62
  self
62
63
  end
63
64
  def results_file(file_name)
64
- b.append " /resultsFile:#{b.format file_name}"
65
- yield b if block_given?
65
+ @b.append " /resultsFile:#{@b.format file_name}"
66
+ yield @b if block_given?
66
67
  self
67
68
  end
68
69
  def unique
69
- b.append ' /unique'
70
- yield b if block_given?
70
+ @b.append ' /unique'
71
+ yield @b if block_given?
71
72
  self
72
73
  end
73
74
  def detail(property_id)
74
- b.append " /detail:#{b.format property_id}"
75
- yield b if block_given?
75
+ @b.append " /detail:#{@b.format property_id}"
76
+ yield @b if block_given?
76
77
  self
77
78
  end
78
79
  def help
79
- b.append ' /help'
80
- yield b if block_given?
80
+ @b.append ' /help'
81
+ yield @b if block_given?
81
82
  self
82
83
  end
83
84
  def no_logo
84
- b.append ' /noLogo'
85
- yield b if block_given?
85
+ @b.append ' /noLogo'
86
+ yield @b if block_given?
86
87
  self
87
88
  end
88
89
  def use_std_err
89
- b.append ' /useStdErr'
90
- yield b if block_given?
90
+ @b.append ' /useStdErr'
91
+ yield @b if block_given?
91
92
  self
92
93
  end
93
94
  def publish(server_name)
94
- b.append " /publish:#{b.format server_name}"
95
- yield b if block_given?
95
+ @b.append " /publish:#{@b.format server_name}"
96
+ yield @b if block_given?
96
97
  self
97
98
  end
98
99
  def publish_results_file(file_name)
99
- b.append " /publishResultsFile:#{b.format file_name}"
100
- yield b if block_given?
100
+ @b.append " /publishResultsFile:#{@b.format file_name}"
101
+ yield @b if block_given?
101
102
  self
102
103
  end
103
104
  def publish_build(build_id)
104
- b.append " /publishBuild:#{b.format build_id}"
105
- yield b if block_given?
105
+ @b.append " /publishBuild:#{@b.format build_id}"
106
+ yield @b if block_given?
106
107
  self
107
108
  end
108
109
  def team_project(team_project_name)
109
- b.append " /teamProject:#{b.format team_project_name}"
110
- yield b if block_given?
110
+ @b.append " /teamProject:#{@b.format team_project_name}"
111
+ yield @b if block_given?
111
112
  self
112
113
  end
113
114
  def platform(platform)
114
- b.append " /platform:#{b.format platform}"
115
- yield b if block_given?
115
+ @b.append " /platform:#{@b.format platform}"
116
+ yield @b if block_given?
116
117
  self
117
118
  end
118
119
  def flavor(flavor)
119
- b.append " /flavor:#{b.format flavor}"
120
- yield b if block_given?
120
+ @b.append " /flavor:#{@b.format flavor}"
121
+ yield @b if block_given?
121
122
  self
122
123
  end
123
124
  end