fluent_command_builder 0.1.26 → 0.1.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. data/lib/fluent_command_builder.rb +3 -0
  2. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +8 -8
  3. data/lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb +8 -8
  4. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +8 -8
  5. data/lib/fluent_command_builder/command_builders/bundle_11.rb +32 -32
  6. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +15 -15
  7. data/lib/fluent_command_builder/command_builders/dotcover_10.rb +70 -0
  8. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +128 -81
  9. data/lib/fluent_command_builder/command_builders/dotcover_12.rb +294 -0
  10. data/lib/fluent_command_builder/command_builders/installutil_11.rb +5 -5
  11. data/lib/fluent_command_builder/command_builders/installutil_20.rb +6 -6
  12. data/lib/fluent_command_builder/command_builders/installutil_35.rb +6 -6
  13. data/lib/fluent_command_builder/command_builders/installutil_40.rb +7 -7
  14. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +10 -10
  15. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +10 -10
  16. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +16 -16
  17. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +17 -17
  18. data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +25 -25
  19. data/lib/fluent_command_builder/command_builders/mstest_2005.rb +14 -14
  20. data/lib/fluent_command_builder/command_builders/mstest_2008.rb +14 -14
  21. data/lib/fluent_command_builder/command_builders/mstest_2010.rb +16 -16
  22. data/lib/fluent_command_builder/command_builders/netsh_2008.rb +73 -73
  23. data/lib/fluent_command_builder/command_builders/nunit_25.rb +48 -33
  24. data/lib/fluent_command_builder/command_builders/nunit_26.rb +183 -0
  25. data/lib/fluent_command_builder/command_builders/rake_09.rb +13 -13
  26. data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +69 -69
  27. data/lib/fluent_command_builder/command_builders/simian_23.rb +24 -24
  28. data/lib/fluent_command_builder/command_builders/tf_2010.rb +306 -306
  29. data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +282 -282
  30. metadata +5 -2
@@ -6,100 +6,100 @@ module FluentCommandBuilder
6
6
  module V40
7
7
  COMMAND_NAME = 'MSDeploy'
8
8
  class MSDeploy < CommandBase
9
- def initialize builder
9
+ def initialize(builder)
10
10
  super builder
11
11
  end
12
- def allow_untrusted bool
12
+ def allow_untrusted(bool)
13
13
  @builder.append " -allowUntrusted:#{@builder.format bool}"
14
14
  yield @builder if block_given?
15
15
  self
16
16
  end
17
- def app_host_config_dir path
17
+ def app_host_config_dir(path)
18
18
  @builder.append " -appHostConfigDir:#{@builder.format path}"
19
19
  yield @builder if block_given?
20
20
  self
21
21
  end
22
- def declare_param param
22
+ def declare_param(param)
23
23
  @builder.append " -declareParam:#{@builder.format param, ',', '='}"
24
24
  yield @builder if block_given?
25
25
  self
26
26
  end
27
- def declare_param_file xml_file
27
+ def declare_param_file(xml_file)
28
28
  @builder.append " -declareParamFile:#{@builder.format xml_file}"
29
29
  yield @builder if block_given?
30
30
  self
31
31
  end
32
- def dest provider
32
+ def dest(provider)
33
33
  @builder.append " -dest:#{@builder.format provider}"
34
34
  yield @builder if block_given?
35
35
  self
36
36
  end
37
- def disable_link link_extension
37
+ def disable_link(link_extension)
38
38
  @builder.append " -disableLink:#{@builder.format link_extension}"
39
39
  yield @builder if block_given?
40
40
  self
41
41
  end
42
- def disable_rule rule
42
+ def disable_rule(rule)
43
43
  @builder.append " -disableRule:#{@builder.format rule, ','}"
44
44
  yield @builder if block_given?
45
45
  self
46
46
  end
47
- def disable_skip_directive skip_directive_name
47
+ def disable_skip_directive(skip_directive_name)
48
48
  @builder.append " -disableSkipDirective:#{@builder.format skip_directive_name}"
49
49
  yield @builder if block_given?
50
50
  self
51
51
  end
52
- def enable_link link_extension
52
+ def enable_link(link_extension)
53
53
  @builder.append " -enableLink:#{@builder.format link_extension}"
54
54
  yield @builder if block_given?
55
55
  self
56
56
  end
57
- def enable_rule rule
57
+ def enable_rule(rule)
58
58
  @builder.append " -enableRule:#{@builder.format rule, ','}"
59
59
  yield @builder if block_given?
60
60
  self
61
61
  end
62
- def enable_skip_directive skip_directive_name
62
+ def enable_skip_directive(skip_directive_name)
63
63
  @builder.append " -enableSkipDirective:#{@builder.format skip_directive_name}"
64
64
  yield @builder if block_given?
65
65
  self
66
66
  end
67
- def post_sync command
67
+ def post_sync(command)
68
68
  @builder.append " -postSync:#{@builder.format command}"
69
69
  yield @builder if block_given?
70
70
  self
71
71
  end
72
- def pre_sync command
72
+ def pre_sync(command)
73
73
  @builder.append " -preSync:#{@builder.format command}"
74
74
  yield @builder if block_given?
75
75
  self
76
76
  end
77
- def remove_param param
77
+ def remove_param(param)
78
78
  @builder.append " -removeParam:#{@builder.format param}"
79
79
  yield @builder if block_given?
80
80
  self
81
81
  end
82
- def replace arg
82
+ def replace(arg)
83
83
  @builder.append " -replace:#{@builder.format arg}"
84
84
  yield @builder if block_given?
85
85
  self
86
86
  end
87
- def retry_attempts number
87
+ def retry_attempts(number)
88
88
  @builder.append " -retryAttempts:#{@builder.format number}"
89
89
  yield @builder if block_given?
90
90
  self
91
91
  end
92
- def retry_interval milliseconds
92
+ def retry_interval(milliseconds)
93
93
  @builder.append " -retryInterval:#{@builder.format milliseconds}"
94
94
  yield @builder if block_given?
95
95
  self
96
96
  end
97
- def set_param param
97
+ def set_param(param)
98
98
  @builder.append " -setParam:#{@builder.format param, ',', '='}"
99
99
  yield @builder if block_given?
100
100
  self
101
101
  end
102
- def set_param_file xml_file
102
+ def set_param_file(xml_file)
103
103
  @builder.append " -setParamFile:#{@builder.format xml_file}"
104
104
  yield @builder if block_given?
105
105
  self
@@ -109,12 +109,12 @@ module FluentCommandBuilder
109
109
  yield @builder if block_given?
110
110
  self
111
111
  end
112
- def skip arg
112
+ def skip(arg)
113
113
  @builder.append " -skip:#{@builder.format arg}"
114
114
  yield @builder if block_given?
115
115
  self
116
116
  end
117
- def source provider
117
+ def source(provider)
118
118
  @builder.append " -source:#{@builder.format provider}"
119
119
  yield @builder if block_given?
120
120
  self
@@ -129,7 +129,7 @@ module FluentCommandBuilder
129
129
  yield @builder if block_given?
130
130
  self
131
131
  end
132
- def verb verb_name
132
+ def verb(verb_name)
133
133
  @builder.append " -verb:#{@builder.format verb_name}"
134
134
  yield @builder if block_given?
135
135
  self
@@ -139,7 +139,7 @@ module FluentCommandBuilder
139
139
  yield @builder if block_given?
140
140
  self
141
141
  end
142
- def web_server_dir path
142
+ def web_server_dir(path)
143
143
  @builder.append " -webServerDir:#{@builder.format path}"
144
144
  yield @builder if block_given?
145
145
  self
@@ -154,7 +154,7 @@ module FluentCommandBuilder
154
154
  yield @builder if block_given?
155
155
  self
156
156
  end
157
- def xpath path
157
+ def xpath(path)
158
158
  @builder.append " -xpath:#{@builder.format path}"
159
159
  yield @builder if block_given?
160
160
  self
@@ -6,35 +6,35 @@ module FluentCommandBuilder
6
6
  module V2005
7
7
  COMMAND_NAME = 'MSTest'
8
8
  class MSTest < CommandBase
9
- def initialize builder
9
+ def initialize(builder)
10
10
  super builder
11
11
  end
12
- def test_container file_name
12
+ def test_container(file_name)
13
13
  @builder.append " /testContainer:#{@builder.format file_name}"
14
14
  yield @builder if block_given?
15
15
  self
16
16
  end
17
- def test_metadata file_name
17
+ def test_metadata(file_name)
18
18
  @builder.append " /testMetadata:#{@builder.format file_name}"
19
19
  yield @builder if block_given?
20
20
  self
21
21
  end
22
- def test_list list_list_path
22
+ def test_list(list_list_path)
23
23
  @builder.append " /testList:#{@builder.format list_list_path}"
24
24
  yield @builder if block_given?
25
25
  self
26
26
  end
27
- def test test_name
27
+ def test(test_name)
28
28
  @builder.append " /test:#{@builder.format test_name}"
29
29
  yield @builder if block_given?
30
30
  self
31
31
  end
32
- def run_config file_name
32
+ def run_config(file_name)
33
33
  @builder.append " /runConfig:#{@builder.format file_name}"
34
34
  yield @builder if block_given?
35
35
  self
36
36
  end
37
- def results_file file_name
37
+ def results_file(file_name)
38
38
  @builder.append " /resultsFile:#{@builder.format file_name}"
39
39
  yield @builder if block_given?
40
40
  self
@@ -44,7 +44,7 @@ module FluentCommandBuilder
44
44
  yield @builder if block_given?
45
45
  self
46
46
  end
47
- def detail property_id
47
+ def detail(property_id)
48
48
  @builder.append " /detail:#{@builder.format property_id}"
49
49
  yield @builder if block_given?
50
50
  self
@@ -59,32 +59,32 @@ module FluentCommandBuilder
59
59
  yield @builder if block_given?
60
60
  self
61
61
  end
62
- def publish server_name
62
+ def publish(server_name)
63
63
  @builder.append " /publish:#{@builder.format server_name}"
64
64
  yield @builder if block_given?
65
65
  self
66
66
  end
67
- def publish_results_file file_name
67
+ def publish_results_file(file_name)
68
68
  @builder.append " /publishResultsFile:#{@builder.format file_name}"
69
69
  yield @builder if block_given?
70
70
  self
71
71
  end
72
- def publish_build build_id
72
+ def publish_build(build_id)
73
73
  @builder.append " /publishBuild:#{@builder.format build_id}"
74
74
  yield @builder if block_given?
75
75
  self
76
76
  end
77
- def team_project team_project_name
77
+ def team_project(team_project_name)
78
78
  @builder.append " /teamProject:#{@builder.format team_project_name}"
79
79
  yield @builder if block_given?
80
80
  self
81
81
  end
82
- def platform platform
82
+ def platform(platform)
83
83
  @builder.append " /platform:#{@builder.format platform}"
84
84
  yield @builder if block_given?
85
85
  self
86
86
  end
87
- def flavor flavor
87
+ def flavor(flavor)
88
88
  @builder.append " /flavor:#{@builder.format flavor}"
89
89
  yield @builder if block_given?
90
90
  self
@@ -6,25 +6,25 @@ module FluentCommandBuilder
6
6
  module V2008
7
7
  COMMAND_NAME = 'MSTest'
8
8
  class MSTest < CommandBase
9
- def initialize builder
9
+ def initialize(builder)
10
10
  super builder
11
11
  end
12
- def test_container file_name
12
+ def test_container(file_name)
13
13
  @builder.append " /testContainer:#{@builder.format file_name}"
14
14
  yield @builder if block_given?
15
15
  self
16
16
  end
17
- def test_metadata file_name
17
+ def test_metadata(file_name)
18
18
  @builder.append " /testMetadata:#{@builder.format file_name}"
19
19
  yield @builder if block_given?
20
20
  self
21
21
  end
22
- def test_list list_list_path
22
+ def test_list(list_list_path)
23
23
  @builder.append " /testList:#{@builder.format list_list_path}"
24
24
  yield @builder if block_given?
25
25
  self
26
26
  end
27
- def test test_name
27
+ def test(test_name)
28
28
  @builder.append " /test:#{@builder.format test_name}"
29
29
  yield @builder if block_given?
30
30
  self
@@ -34,12 +34,12 @@ module FluentCommandBuilder
34
34
  yield @builder if block_given?
35
35
  self
36
36
  end
37
- def run_config file_name
37
+ def run_config(file_name)
38
38
  @builder.append " /runConfig:#{@builder.format file_name}"
39
39
  yield @builder if block_given?
40
40
  self
41
41
  end
42
- def results_file file_name
42
+ def results_file(file_name)
43
43
  @builder.append " /resultsFile:#{@builder.format file_name}"
44
44
  yield @builder if block_given?
45
45
  self
@@ -49,7 +49,7 @@ module FluentCommandBuilder
49
49
  yield @builder if block_given?
50
50
  self
51
51
  end
52
- def detail property_id
52
+ def detail(property_id)
53
53
  @builder.append " /detail:#{@builder.format property_id}"
54
54
  yield @builder if block_given?
55
55
  self
@@ -64,32 +64,32 @@ module FluentCommandBuilder
64
64
  yield @builder if block_given?
65
65
  self
66
66
  end
67
- def publish server_name
67
+ def publish(server_name)
68
68
  @builder.append " /publish:#{@builder.format server_name}"
69
69
  yield @builder if block_given?
70
70
  self
71
71
  end
72
- def publish_results_file file_name
72
+ def publish_results_file(file_name)
73
73
  @builder.append " /publishResultsFile:#{@builder.format file_name}"
74
74
  yield @builder if block_given?
75
75
  self
76
76
  end
77
- def publish_build build_id
77
+ def publish_build(build_id)
78
78
  @builder.append " /publishBuild:#{@builder.format build_id}"
79
79
  yield @builder if block_given?
80
80
  self
81
81
  end
82
- def team_project team_project_name
82
+ def team_project(team_project_name)
83
83
  @builder.append " /teamProject:#{@builder.format team_project_name}"
84
84
  yield @builder if block_given?
85
85
  self
86
86
  end
87
- def platform platform
87
+ def platform(platform)
88
88
  @builder.append " /platform:#{@builder.format platform}"
89
89
  yield @builder if block_given?
90
90
  self
91
91
  end
92
- def flavor flavor
92
+ def flavor(flavor)
93
93
  @builder.append " /flavor:#{@builder.format flavor}"
94
94
  yield @builder if block_given?
95
95
  self
@@ -6,30 +6,30 @@ module FluentCommandBuilder
6
6
  module V2010
7
7
  COMMAND_NAME = 'MSTest'
8
8
  class MSTest < CommandBase
9
- def initialize builder
9
+ def initialize(builder)
10
10
  super builder
11
11
  end
12
- def test_container file_name
12
+ def test_container(file_name)
13
13
  @builder.append " /testContainer:#{@builder.format file_name}"
14
14
  yield @builder if block_given?
15
15
  self
16
16
  end
17
- def test_metadata file_name
17
+ def test_metadata(file_name)
18
18
  @builder.append " /testMetadata:#{@builder.format file_name}"
19
19
  yield @builder if block_given?
20
20
  self
21
21
  end
22
- def test_list list_list_path
22
+ def test_list(list_list_path)
23
23
  @builder.append " /testList:#{@builder.format list_list_path}"
24
24
  yield @builder if block_given?
25
25
  self
26
26
  end
27
- def category test_category_filter
27
+ def category(test_category_filter)
28
28
  @builder.append " /category:#{@builder.format test_category_filter}"
29
29
  yield @builder if block_given?
30
30
  self
31
31
  end
32
- def test test_name
32
+ def test(test_name)
33
33
  @builder.append " /test:#{@builder.format test_name}"
34
34
  yield @builder if block_given?
35
35
  self
@@ -39,17 +39,17 @@ module FluentCommandBuilder
39
39
  yield @builder if block_given?
40
40
  self
41
41
  end
42
- def test_settings file_name
42
+ def test_settings(file_name)
43
43
  @builder.append " /testSettings:#{@builder.format file_name}"
44
44
  yield @builder if block_given?
45
45
  self
46
46
  end
47
- def run_config file_name
47
+ def run_config(file_name)
48
48
  @builder.append " /runConfig:#{@builder.format file_name}"
49
49
  yield @builder if block_given?
50
50
  self
51
51
  end
52
- def results_file file_name
52
+ def results_file(file_name)
53
53
  @builder.append " /resultsFile:#{@builder.format file_name}"
54
54
  yield @builder if block_given?
55
55
  self
@@ -59,7 +59,7 @@ module FluentCommandBuilder
59
59
  yield @builder if block_given?
60
60
  self
61
61
  end
62
- def detail property_id
62
+ def detail(property_id)
63
63
  @builder.append " /detail:#{@builder.format property_id}"
64
64
  yield @builder if block_given?
65
65
  self
@@ -79,32 +79,32 @@ module FluentCommandBuilder
79
79
  yield @builder if block_given?
80
80
  self
81
81
  end
82
- def publish server_name
82
+ def publish(server_name)
83
83
  @builder.append " /publish:#{@builder.format server_name}"
84
84
  yield @builder if block_given?
85
85
  self
86
86
  end
87
- def publish_results_file file_name
87
+ def publish_results_file(file_name)
88
88
  @builder.append " /publishResultsFile:#{@builder.format file_name}"
89
89
  yield @builder if block_given?
90
90
  self
91
91
  end
92
- def publish_build build_id
92
+ def publish_build(build_id)
93
93
  @builder.append " /publishBuild:#{@builder.format build_id}"
94
94
  yield @builder if block_given?
95
95
  self
96
96
  end
97
- def team_project team_project_name
97
+ def team_project(team_project_name)
98
98
  @builder.append " /teamProject:#{@builder.format team_project_name}"
99
99
  yield @builder if block_given?
100
100
  self
101
101
  end
102
- def platform platform
102
+ def platform(platform)
103
103
  @builder.append " /platform:#{@builder.format platform}"
104
104
  yield @builder if block_given?
105
105
  self
106
106
  end
107
- def flavor flavor
107
+ def flavor(flavor)
108
108
  @builder.append " /flavor:#{@builder.format flavor}"
109
109
  yield @builder if block_given?
110
110
  self
@@ -6,7 +6,7 @@ module FluentCommandBuilder
6
6
  module V2008
7
7
  COMMAND_NAME = 'netsh'
8
8
  class Netsh < CommandBase
9
- def initialize builder
9
+ def initialize(builder)
10
10
  super builder
11
11
  end
12
12
  def advfirewall
@@ -17,7 +17,7 @@ module FluentCommandBuilder
17
17
  end
18
18
  end
19
19
  class Advfirewall < CommandBase
20
- def initialize builder
20
+ def initialize(builder)
21
21
  super builder
22
22
  @builder.append ' advfirewall'
23
23
  end
@@ -26,206 +26,206 @@ module FluentCommandBuilder
26
26
  end
27
27
  end
28
28
  class Firewall < CommandBase
29
- def initialize builder
29
+ def initialize(builder)
30
30
  super builder
31
31
  @builder.append ' firewall'
32
32
  end
33
- def add_rule rule_name, direction, action
33
+ def add_rule(rule_name, direction, action)
34
34
  AddRule.new @builder, rule_name, direction, action
35
35
  end
36
- def delete_rule rule_name
36
+ def delete_rule(rule_name)
37
37
  DeleteRule.new @builder, rule_name
38
38
  end
39
39
  def set_rule
40
40
  SetRule.new @builder
41
41
  end
42
- def show_rule rule_name
42
+ def show_rule(rule_name)
43
43
  ShowRule.new @builder, rule_name
44
44
  end
45
45
  end
46
46
  class AddRule < CommandBase
47
- def initialize builder, rule_name, direction, action
47
+ def initialize(builder, rule_name, direction, action)
48
48
  super builder
49
49
  @builder.append " add rule name=#{@builder.format rule_name} dir=#{@builder.format direction} action=#{@builder.format action}"
50
50
  end
51
- def program path
51
+ def program(path)
52
52
  @builder.append " program=#{@builder.format path}"
53
53
  yield @builder if block_given?
54
54
  self
55
55
  end
56
- def service service_short_name
56
+ def service(service_short_name)
57
57
  @builder.append " service=#{@builder.format service_short_name}"
58
58
  yield @builder if block_given?
59
59
  self
60
60
  end
61
- def description rule_description
61
+ def description(rule_description)
62
62
  @builder.append " description=#{@builder.format rule_description}"
63
63
  yield @builder if block_given?
64
64
  self
65
65
  end
66
- def enable enable
66
+ def enable(enable)
67
67
  @builder.append " enable=#{@builder.format enable}"
68
68
  yield @builder if block_given?
69
69
  self
70
70
  end
71
- def profile profile
71
+ def profile(profile)
72
72
  @builder.append " profile=#{@builder.format profile}"
73
73
  yield @builder if block_given?
74
74
  self
75
75
  end
76
- def local_ip address
76
+ def local_ip(address)
77
77
  @builder.append " localIp=#{@builder.format address, ','}"
78
78
  yield @builder if block_given?
79
79
  self
80
80
  end
81
- def remote_ip address
81
+ def remote_ip(address)
82
82
  @builder.append " remoteIp=#{@builder.format address, ','}"
83
83
  yield @builder if block_given?
84
84
  self
85
85
  end
86
- def local_port port
86
+ def local_port(port)
87
87
  @builder.append " localPort=#{@builder.format port, ','}"
88
88
  yield @builder if block_given?
89
89
  self
90
90
  end
91
- def remote_port port
91
+ def remote_port(port)
92
92
  @builder.append " remotePort=#{@builder.format port, ','}"
93
93
  yield @builder if block_given?
94
94
  self
95
95
  end
96
- def protocol protocol
96
+ def protocol(protocol)
97
97
  @builder.append " protocol=#{@builder.format protocol}"
98
98
  yield @builder if block_given?
99
99
  self
100
100
  end
101
- def interface_type type
101
+ def interface_type(type)
102
102
  @builder.append " interfaceType=#{@builder.format type}"
103
103
  yield @builder if block_given?
104
104
  self
105
105
  end
106
- def remote_computer_group sddl_string
106
+ def remote_computer_group(sddl_string)
107
107
  @builder.append " rmtcomputergrp=#{@builder.format sddl_string}"
108
108
  yield @builder if block_given?
109
109
  self
110
110
  end
111
- def remote_user_group sddl_string
111
+ def remote_user_group(sddl_string)
112
112
  @builder.append " rmtusgrp=#{@builder.format sddl_string}"
113
113
  yield @builder if block_given?
114
114
  self
115
115
  end
116
- def edge edge
116
+ def edge(edge)
117
117
  @builder.append " edge=#{@builder.format edge}"
118
118
  yield @builder if block_given?
119
119
  self
120
120
  end
121
- def security security
121
+ def security(security)
122
122
  @builder.append " security=#{@builder.format security}"
123
123
  yield @builder if block_given?
124
124
  self
125
125
  end
126
126
  end
127
127
  class DeleteRule < CommandBase
128
- def initialize builder, rule_name
128
+ def initialize(builder, rule_name)
129
129
  super builder
130
130
  @builder.append " delete rule name=#{@builder.format rule_name}"
131
131
  end
132
- def dir direction
132
+ def dir(direction)
133
133
  @builder.append " dir=#{@builder.format direction}"
134
134
  yield @builder if block_given?
135
135
  self
136
136
  end
137
- def profile profile
137
+ def profile(profile)
138
138
  @builder.append " profile=#{@builder.format profile}"
139
139
  yield @builder if block_given?
140
140
  self
141
141
  end
142
- def program path
142
+ def program(path)
143
143
  @builder.append " program=#{@builder.format path}"
144
144
  yield @builder if block_given?
145
145
  self
146
146
  end
147
- def service service_short_name
147
+ def service(service_short_name)
148
148
  @builder.append " service=#{@builder.format service_short_name}"
149
149
  yield @builder if block_given?
150
150
  self
151
151
  end
152
- def local_ip address
152
+ def local_ip(address)
153
153
  @builder.append " localIp=#{@builder.format address, ','}"
154
154
  yield @builder if block_given?
155
155
  self
156
156
  end
157
- def remote_ip address
157
+ def remote_ip(address)
158
158
  @builder.append " remoteIp=#{@builder.format address, ','}"
159
159
  yield @builder if block_given?
160
160
  self
161
161
  end
162
- def local_port port
162
+ def local_port(port)
163
163
  @builder.append " localPort=#{@builder.format port, ','}"
164
164
  yield @builder if block_given?
165
165
  self
166
166
  end
167
- def remote_port port
167
+ def remote_port(port)
168
168
  @builder.append " remotePort=#{@builder.format port, ','}"
169
169
  yield @builder if block_given?
170
170
  self
171
171
  end
172
- def protocol protocol
172
+ def protocol(protocol)
173
173
  @builder.append " protocol=#{@builder.format protocol}"
174
174
  yield @builder if block_given?
175
175
  self
176
176
  end
177
177
  end
178
178
  class SetRule < CommandBase
179
- def initialize builder
179
+ def initialize(builder)
180
180
  super builder
181
181
  @builder.append ' set rule'
182
182
  end
183
- def group group_name
183
+ def group(group_name)
184
184
  @builder.append " group=#{@builder.format group_name}"
185
185
  yield @builder if block_given?
186
186
  self
187
187
  end
188
- def dir direction
188
+ def dir(direction)
189
189
  @builder.append " dir=#{@builder.format direction}"
190
190
  yield @builder if block_given?
191
191
  self
192
192
  end
193
- def profile profile
193
+ def profile(profile)
194
194
  @builder.append " profile=#{@builder.format profile}"
195
195
  yield @builder if block_given?
196
196
  self
197
197
  end
198
- def program path
198
+ def program(path)
199
199
  @builder.append " program=#{@builder.format path}"
200
200
  yield @builder if block_given?
201
201
  self
202
202
  end
203
- def service service_short_name
203
+ def service(service_short_name)
204
204
  @builder.append " service=#{@builder.format service_short_name}"
205
205
  yield @builder if block_given?
206
206
  self
207
207
  end
208
- def local_ip address
208
+ def local_ip(address)
209
209
  @builder.append " localIp=#{@builder.format address, ','}"
210
210
  yield @builder if block_given?
211
211
  self
212
212
  end
213
- def remote_ip address
213
+ def remote_ip(address)
214
214
  @builder.append " remoteIp=#{@builder.format address, ','}"
215
215
  yield @builder if block_given?
216
216
  self
217
217
  end
218
- def local_port port
218
+ def local_port(port)
219
219
  @builder.append " localPort=#{@builder.format port, ','}"
220
220
  yield @builder if block_given?
221
221
  self
222
222
  end
223
- def remote_port port
223
+ def remote_port(port)
224
224
  @builder.append " remotePort=#{@builder.format port, ','}"
225
225
  yield @builder if block_given?
226
226
  self
227
227
  end
228
- def protocol protocol
228
+ def protocol(protocol)
229
229
  @builder.append " protocol=#{@builder.format protocol}"
230
230
  yield @builder if block_given?
231
231
  self
@@ -235,112 +235,112 @@ module FluentCommandBuilder
235
235
  end
236
236
  end
237
237
  class New < CommandBase
238
- def initialize builder
238
+ def initialize(builder)
239
239
  super builder
240
240
  @builder.append ' new'
241
241
  end
242
- def name rule_name
242
+ def name(rule_name)
243
243
  @builder.append " name=#{@builder.format rule_name}"
244
244
  yield @builder if block_given?
245
245
  self
246
246
  end
247
- def dir direction
247
+ def dir(direction)
248
248
  @builder.append " dir=#{@builder.format direction}"
249
249
  yield @builder if block_given?
250
250
  self
251
251
  end
252
- def program path
252
+ def program(path)
253
253
  @builder.append " program=#{@builder.format path}"
254
254
  yield @builder if block_given?
255
255
  self
256
256
  end
257
- def service service_short_name
257
+ def service(service_short_name)
258
258
  @builder.append " service=#{@builder.format service_short_name}"
259
259
  yield @builder if block_given?
260
260
  self
261
261
  end
262
- def action action
262
+ def action(action)
263
263
  @builder.append " action=#{@builder.format action}"
264
264
  yield @builder if block_given?
265
265
  self
266
266
  end
267
- def description rule_description
267
+ def description(rule_description)
268
268
  @builder.append " description=#{@builder.format rule_description}"
269
269
  yield @builder if block_given?
270
270
  self
271
271
  end
272
- def enable enable
272
+ def enable(enable)
273
273
  @builder.append " enable=#{@builder.format enable}"
274
274
  yield @builder if block_given?
275
275
  self
276
276
  end
277
- def profile profile
277
+ def profile(profile)
278
278
  @builder.append " profile=#{@builder.format profile}"
279
279
  yield @builder if block_given?
280
280
  self
281
281
  end
282
- def local_ip address
282
+ def local_ip(address)
283
283
  @builder.append " localIp=#{@builder.format address, ','}"
284
284
  yield @builder if block_given?
285
285
  self
286
286
  end
287
- def remote_ip address
287
+ def remote_ip(address)
288
288
  @builder.append " remoteIp=#{@builder.format address, ','}"
289
289
  yield @builder if block_given?
290
290
  self
291
291
  end
292
- def local_port port
292
+ def local_port(port)
293
293
  @builder.append " localPort=#{@builder.format port, ','}"
294
294
  yield @builder if block_given?
295
295
  self
296
296
  end
297
- def remote_port port
297
+ def remote_port(port)
298
298
  @builder.append " remotePort=#{@builder.format port, ','}"
299
299
  yield @builder if block_given?
300
300
  self
301
301
  end
302
- def protocol protocol
302
+ def protocol(protocol)
303
303
  @builder.append " protocol=#{@builder.format protocol}"
304
304
  yield @builder if block_given?
305
305
  self
306
306
  end
307
- def interface_type type
307
+ def interface_type(type)
308
308
  @builder.append " interfaceType=#{@builder.format type}"
309
309
  yield @builder if block_given?
310
310
  self
311
311
  end
312
- def remote_computer_group sddl_string
312
+ def remote_computer_group(sddl_string)
313
313
  @builder.append " rmtcomputergrp=#{@builder.format sddl_string}"
314
314
  yield @builder if block_given?
315
315
  self
316
316
  end
317
- def remote_user_group sddl_string
317
+ def remote_user_group(sddl_string)
318
318
  @builder.append " rmtusgrp=#{@builder.format sddl_string}"
319
319
  yield @builder if block_given?
320
320
  self
321
321
  end
322
- def edge edge
322
+ def edge(edge)
323
323
  @builder.append " edge=#{@builder.format edge}"
324
324
  yield @builder if block_given?
325
325
  self
326
326
  end
327
- def security security
327
+ def security(security)
328
328
  @builder.append " security=#{@builder.format security}"
329
329
  yield @builder if block_given?
330
330
  self
331
331
  end
332
332
  end
333
333
  class ShowRule < CommandBase
334
- def initialize builder, rule_name
334
+ def initialize(builder, rule_name)
335
335
  super builder
336
336
  @builder.append " show rule name=#{@builder.format rule_name}"
337
337
  end
338
- def profile profile
338
+ def profile(profile)
339
339
  @builder.append " profile=#{@builder.format profile}"
340
340
  yield @builder if block_given?
341
341
  self
342
342
  end
343
- def type type
343
+ def type(type)
344
344
  @builder.append " type=#{@builder.format type}"
345
345
  yield @builder if block_given?
346
346
  self
@@ -352,40 +352,40 @@ module FluentCommandBuilder
352
352
  end
353
353
  end
354
354
  class Http < CommandBase
355
- def initialize builder
355
+ def initialize(builder)
356
356
  super builder
357
357
  @builder.append ' http'
358
358
  end
359
- def add_url_acl url
359
+ def add_url_acl(url)
360
360
  AddUrlAcl.new @builder, url
361
361
  end
362
- def delete_url_acl url
362
+ def delete_url_acl(url)
363
363
  @builder.append " delete urlacl url=#{@builder.format url}"
364
364
  yield @builder if block_given?
365
365
  self
366
366
  end
367
367
  end
368
368
  class AddUrlAcl < CommandBase
369
- def initialize builder, url
369
+ def initialize(builder, url)
370
370
  super builder
371
371
  @builder.append " add urlacl url=#{@builder.format url}"
372
372
  end
373
- def user user
373
+ def user(user)
374
374
  @builder.append " user=#{@builder.format user}"
375
375
  yield @builder if block_given?
376
376
  self
377
377
  end
378
- def listen listen
378
+ def listen(listen)
379
379
  @builder.append " listen=#{@builder.format listen}"
380
380
  yield @builder if block_given?
381
381
  self
382
382
  end
383
- def delegate delegate
383
+ def delegate(delegate)
384
384
  @builder.append " delegate=#{@builder.format delegate}"
385
385
  yield @builder if block_given?
386
386
  self
387
387
  end
388
- def sddl sddl
388
+ def sddl(sddl)
389
389
  @builder.append " sddl=#{@builder.format sddl}"
390
390
  yield @builder if block_given?
391
391
  self