fluent_command_builder 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/lib/fluent_command_builder/command_builders/appcfg_python.rb +14 -0
  2. data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +2612 -0
  3. data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +2602 -0
  4. data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +14 -0
  5. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +102 -0
  6. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +102 -0
  7. data/lib/fluent_command_builder/command_builders/bundle.rb +14 -0
  8. data/lib/fluent_command_builder/command_builders/bundle_11.rb +320 -0
  9. data/lib/fluent_command_builder/command_builders/bundle_12.rb +344 -0
  10. data/lib/fluent_command_builder/command_builders/cucumber.rb +14 -0
  11. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +177 -0
  12. data/lib/fluent_command_builder/command_builders/cucumber_12.rb +182 -0
  13. data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +14 -0
  14. data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +207 -0
  15. data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +207 -0
  16. data/lib/fluent_command_builder/command_builders/dotcover.rb +14 -0
  17. data/lib/fluent_command_builder/command_builders/dotcover_10.rb +68 -0
  18. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +298 -0
  19. data/lib/fluent_command_builder/command_builders/dotcover_12.rb +298 -0
  20. data/lib/fluent_command_builder/command_builders/dotcover_20.rb +308 -0
  21. data/lib/fluent_command_builder/command_builders/dotcover_21.rb +308 -0
  22. data/lib/fluent_command_builder/command_builders/dotcover_22.rb +308 -0
  23. data/lib/fluent_command_builder/command_builders/fastlinkchecker.rb +14 -0
  24. data/lib/fluent_command_builder/command_builders/fastlinkchecker_21.rb +262 -0
  25. data/lib/fluent_command_builder/command_builders/installutil.rb +14 -0
  26. data/lib/fluent_command_builder/command_builders/installutil_11.rb +63 -0
  27. data/lib/fluent_command_builder/command_builders/installutil_20.rb +68 -0
  28. data/lib/fluent_command_builder/command_builders/installutil_35.rb +68 -0
  29. data/lib/fluent_command_builder/command_builders/installutil_40.rb +74 -0
  30. data/lib/fluent_command_builder/command_builders/msbuild.rb +14 -0
  31. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +93 -0
  32. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +93 -0
  33. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +133 -0
  34. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +136 -0
  35. data/lib/fluent_command_builder/command_builders/msdeploy.rb +14 -0
  36. data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +181 -0
  37. data/lib/fluent_command_builder/command_builders/mstest.rb +14 -0
  38. data/lib/fluent_command_builder/command_builders/mstest_100.rb +131 -0
  39. data/lib/fluent_command_builder/command_builders/mstest_80.rb +111 -0
  40. data/lib/fluent_command_builder/command_builders/mstest_90.rb +116 -0
  41. data/lib/fluent_command_builder/command_builders/netsh.rb +14 -0
  42. data/lib/fluent_command_builder/command_builders/netsh_61.rb +412 -0
  43. data/lib/fluent_command_builder/command_builders/nuget.rb +14 -0
  44. data/lib/fluent_command_builder/command_builders/nuget_20.rb +436 -0
  45. data/lib/fluent_command_builder/command_builders/nuget_21.rb +532 -0
  46. data/lib/fluent_command_builder/command_builders/nunit.rb +14 -0
  47. data/lib/fluent_command_builder/command_builders/nunit_25.rb +152 -0
  48. data/lib/fluent_command_builder/command_builders/nunit_26.rb +192 -0
  49. data/lib/fluent_command_builder/command_builders/rake.rb +14 -0
  50. data/lib/fluent_command_builder/command_builders/rake_09.rb +155 -0
  51. data/lib/fluent_command_builder/command_builders/rake_100.rb +193 -0
  52. data/lib/fluent_command_builder/command_builders/schtasks.rb +14 -0
  53. data/lib/fluent_command_builder/command_builders/schtasks_61.rb +352 -0
  54. data/lib/fluent_command_builder/command_builders/security_osx.rb +14 -0
  55. data/lib/fluent_command_builder/command_builders/security_osx_107.rb +187 -0
  56. data/lib/fluent_command_builder/command_builders/security_osx_108.rb +187 -0
  57. data/lib/fluent_command_builder/command_builders/sevenzip.rb +14 -0
  58. data/lib/fluent_command_builder/command_builders/sevenzip_920.rb +522 -0
  59. data/lib/fluent_command_builder/command_builders/simian.rb +14 -0
  60. data/lib/fluent_command_builder/command_builders/simian_23.rb +146 -0
  61. data/lib/fluent_command_builder/command_builders/team_foundation.rb +14 -0
  62. data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +2159 -0
  63. data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +14 -0
  64. data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +1884 -0
  65. data/lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb +2002 -0
  66. data/lib/fluent_command_builder/command_builders/xcodebuild.rb +14 -0
  67. data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +275 -0
  68. data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +325 -0
  69. data/lib/fluent_command_builder/command_builders/xcodebuild_45.rb +330 -0
  70. metadata +82 -13
@@ -0,0 +1,14 @@
1
+ # Generated code. Do not modify.
2
+
3
+ require 'getversion'
4
+ require_relative '../internal/underlying_builder'
5
+
6
+ module FluentCommandBuilder
7
+ module MSTest
8
+ COMMAND_NAME = 'MSTest'
9
+ def self.version(path=nil)
10
+ executable = path ? File.join(path, COMMAND_NAME) : COMMAND_NAME
11
+ GetVersion[executable]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,131 @@
1
+ # Generated code. Do not modify.
2
+
3
+ require_relative '../internal/command_base'
4
+ require_relative '../internal/command_builder_config'
5
+ require_relative '../internal/underlying_builder'
6
+
7
+ module FluentCommandBuilder
8
+ module MSTest
9
+ module V100
10
+ VERSION = '10.0'
11
+ @@config = CommandBuilderConfig.new FluentCommandBuilder::MSTest::COMMAND_NAME, VERSION
12
+ def configure_mstest
13
+ yield @@config
14
+ @@config.validate_path
15
+ @@config.validate_version
16
+ end
17
+ def mstest
18
+ b = UnderlyingBuilder.new @@config
19
+ c = MSTest.new(b)
20
+ yield b if block_given?
21
+ c
22
+ end
23
+ class MSTest < CommandBase
24
+ def initialize(underlying_builder)
25
+ super underlying_builder
26
+ end
27
+ def test_container(file_name)
28
+ @b.append " /testContainer:#{@b.format file_name}"
29
+ yield @b if block_given?
30
+ self
31
+ end
32
+ def test_metadata(file_name)
33
+ @b.append " /testMetadata:#{@b.format file_name}"
34
+ yield @b if block_given?
35
+ self
36
+ end
37
+ def test_list(test_list_path)
38
+ @b.append " /testList:#{@b.format test_list_path}"
39
+ yield @b if block_given?
40
+ self
41
+ end
42
+ def category(test_category_filter)
43
+ @b.append " /category:#{@b.format test_category_filter}"
44
+ yield @b if block_given?
45
+ self
46
+ end
47
+ def test(test_name)
48
+ @b.append " /test:#{@b.format test_name}"
49
+ yield @b if block_given?
50
+ self
51
+ end
52
+ def no_isolation
53
+ @b.append ' /noIsolation'
54
+ yield @b if block_given?
55
+ self
56
+ end
57
+ def test_settings(file_name)
58
+ @b.append " /testSettings:#{@b.format file_name}"
59
+ yield @b if block_given?
60
+ self
61
+ end
62
+ def run_config(file_name)
63
+ @b.append " /runConfig:#{@b.format file_name}"
64
+ yield @b if block_given?
65
+ self
66
+ end
67
+ def results_file(file_name)
68
+ @b.append " /resultsFile:#{@b.format file_name}"
69
+ yield @b if block_given?
70
+ self
71
+ end
72
+ def unique
73
+ @b.append ' /unique'
74
+ yield @b if block_given?
75
+ self
76
+ end
77
+ def detail(property_id)
78
+ @b.append " /detail:#{@b.format property_id}"
79
+ yield @b if block_given?
80
+ self
81
+ end
82
+ def help
83
+ @b.append ' /help'
84
+ yield @b if block_given?
85
+ self
86
+ end
87
+ def no_logo
88
+ @b.append ' /noLogo'
89
+ yield @b if block_given?
90
+ self
91
+ end
92
+ def use_std_err
93
+ @b.append ' /useStdErr'
94
+ yield @b if block_given?
95
+ self
96
+ end
97
+ def publish(server_name)
98
+ @b.append " /publish:#{@b.format server_name}"
99
+ yield @b if block_given?
100
+ self
101
+ end
102
+ def publish_results_file(file_name)
103
+ @b.append " /publishResultsFile:#{@b.format file_name}"
104
+ yield @b if block_given?
105
+ self
106
+ end
107
+ def publish_build(build_id)
108
+ @b.append " /publishBuild:#{@b.format build_id}"
109
+ yield @b if block_given?
110
+ self
111
+ end
112
+ def team_project(team_project_name)
113
+ @b.append " /teamProject:#{@b.format team_project_name}"
114
+ yield @b if block_given?
115
+ self
116
+ end
117
+ def platform(platform)
118
+ @b.append " /platform:#{@b.format platform}"
119
+ yield @b if block_given?
120
+ self
121
+ end
122
+ def flavor(flavor)
123
+ @b.append " /flavor:#{@b.format flavor}"
124
+ yield @b if block_given?
125
+ self
126
+ end
127
+ end
128
+
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,111 @@
1
+ # Generated code. Do not modify.
2
+
3
+ require_relative '../internal/command_base'
4
+ require_relative '../internal/command_builder_config'
5
+ require_relative '../internal/underlying_builder'
6
+
7
+ module FluentCommandBuilder
8
+ module MSTest
9
+ module V80
10
+ VERSION = '8.0'
11
+ @@config = CommandBuilderConfig.new FluentCommandBuilder::MSTest::COMMAND_NAME, VERSION
12
+ def configure_mstest
13
+ yield @@config
14
+ @@config.validate_path
15
+ @@config.validate_version
16
+ end
17
+ def mstest
18
+ b = UnderlyingBuilder.new @@config
19
+ c = MSTest.new(b)
20
+ yield b if block_given?
21
+ c
22
+ end
23
+ class MSTest < CommandBase
24
+ def initialize(underlying_builder)
25
+ super underlying_builder
26
+ end
27
+ def test_container(file_name)
28
+ @b.append " /testContainer:#{@b.format file_name}"
29
+ yield @b if block_given?
30
+ self
31
+ end
32
+ def test_metadata(file_name)
33
+ @b.append " /testMetadata:#{@b.format file_name}"
34
+ yield @b if block_given?
35
+ self
36
+ end
37
+ def test_list(list_list_path)
38
+ @b.append " /testList:#{@b.format list_list_path}"
39
+ yield @b if block_given?
40
+ self
41
+ end
42
+ def test(test_name)
43
+ @b.append " /test:#{@b.format test_name}"
44
+ yield @b if block_given?
45
+ self
46
+ end
47
+ def run_config(file_name)
48
+ @b.append " /runConfig:#{@b.format file_name}"
49
+ yield @b if block_given?
50
+ self
51
+ end
52
+ def results_file(file_name)
53
+ @b.append " /resultsFile:#{@b.format file_name}"
54
+ yield @b if block_given?
55
+ self
56
+ end
57
+ def unique
58
+ @b.append ' /unique'
59
+ yield @b if block_given?
60
+ self
61
+ end
62
+ def detail(property_id)
63
+ @b.append " /detail:#{@b.format property_id}"
64
+ yield @b if block_given?
65
+ self
66
+ end
67
+ def help
68
+ @b.append ' /help'
69
+ yield @b if block_given?
70
+ self
71
+ end
72
+ def no_logo
73
+ @b.append ' /noLogo'
74
+ yield @b if block_given?
75
+ self
76
+ end
77
+ def publish(server_name)
78
+ @b.append " /publish:#{@b.format server_name}"
79
+ yield @b if block_given?
80
+ self
81
+ end
82
+ def publish_results_file(file_name)
83
+ @b.append " /publishResultsFile:#{@b.format file_name}"
84
+ yield @b if block_given?
85
+ self
86
+ end
87
+ def publish_build(build_id)
88
+ @b.append " /publishBuild:#{@b.format build_id}"
89
+ yield @b if block_given?
90
+ self
91
+ end
92
+ def team_project(team_project_name)
93
+ @b.append " /teamProject:#{@b.format team_project_name}"
94
+ yield @b if block_given?
95
+ self
96
+ end
97
+ def platform(platform)
98
+ @b.append " /platform:#{@b.format platform}"
99
+ yield @b if block_given?
100
+ self
101
+ end
102
+ def flavor(flavor)
103
+ @b.append " /flavor:#{@b.format flavor}"
104
+ yield @b if block_given?
105
+ self
106
+ end
107
+ end
108
+
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,116 @@
1
+ # Generated code. Do not modify.
2
+
3
+ require_relative '../internal/command_base'
4
+ require_relative '../internal/command_builder_config'
5
+ require_relative '../internal/underlying_builder'
6
+
7
+ module FluentCommandBuilder
8
+ module MSTest
9
+ module V90
10
+ VERSION = '9.0'
11
+ @@config = CommandBuilderConfig.new FluentCommandBuilder::MSTest::COMMAND_NAME, VERSION
12
+ def configure_mstest
13
+ yield @@config
14
+ @@config.validate_path
15
+ @@config.validate_version
16
+ end
17
+ def mstest
18
+ b = UnderlyingBuilder.new @@config
19
+ c = MSTest.new(b)
20
+ yield b if block_given?
21
+ c
22
+ end
23
+ class MSTest < CommandBase
24
+ def initialize(underlying_builder)
25
+ super underlying_builder
26
+ end
27
+ def test_container(file_name)
28
+ @b.append " /testContainer:#{@b.format file_name}"
29
+ yield @b if block_given?
30
+ self
31
+ end
32
+ def test_metadata(file_name)
33
+ @b.append " /testMetadata:#{@b.format file_name}"
34
+ yield @b if block_given?
35
+ self
36
+ end
37
+ def test_list(list_list_path)
38
+ @b.append " /testList:#{@b.format list_list_path}"
39
+ yield @b if block_given?
40
+ self
41
+ end
42
+ def test(test_name)
43
+ @b.append " /test:#{@b.format test_name}"
44
+ yield @b if block_given?
45
+ self
46
+ end
47
+ def no_isolation
48
+ @b.append ' /noIsolation'
49
+ yield @b if block_given?
50
+ self
51
+ end
52
+ def run_config(file_name)
53
+ @b.append " /runConfig:#{@b.format file_name}"
54
+ yield @b if block_given?
55
+ self
56
+ end
57
+ def results_file(file_name)
58
+ @b.append " /resultsFile:#{@b.format file_name}"
59
+ yield @b if block_given?
60
+ self
61
+ end
62
+ def unique
63
+ @b.append ' /unique'
64
+ yield @b if block_given?
65
+ self
66
+ end
67
+ def detail(property_id)
68
+ @b.append " /detail:#{@b.format property_id}"
69
+ yield @b if block_given?
70
+ self
71
+ end
72
+ def help
73
+ @b.append ' /help'
74
+ yield @b if block_given?
75
+ self
76
+ end
77
+ def no_logo
78
+ @b.append ' /noLogo'
79
+ yield @b if block_given?
80
+ self
81
+ end
82
+ def publish(server_name)
83
+ @b.append " /publish:#{@b.format server_name}"
84
+ yield @b if block_given?
85
+ self
86
+ end
87
+ def publish_results_file(file_name)
88
+ @b.append " /publishResultsFile:#{@b.format file_name}"
89
+ yield @b if block_given?
90
+ self
91
+ end
92
+ def publish_build(build_id)
93
+ @b.append " /publishBuild:#{@b.format build_id}"
94
+ yield @b if block_given?
95
+ self
96
+ end
97
+ def team_project(team_project_name)
98
+ @b.append " /teamProject:#{@b.format team_project_name}"
99
+ yield @b if block_given?
100
+ self
101
+ end
102
+ def platform(platform)
103
+ @b.append " /platform:#{@b.format platform}"
104
+ yield @b if block_given?
105
+ self
106
+ end
107
+ def flavor(flavor)
108
+ @b.append " /flavor:#{@b.format flavor}"
109
+ yield @b if block_given?
110
+ self
111
+ end
112
+ end
113
+
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,14 @@
1
+ # Generated code. Do not modify.
2
+
3
+ require 'getversion'
4
+ require_relative '../internal/underlying_builder'
5
+
6
+ module FluentCommandBuilder
7
+ module Netsh
8
+ COMMAND_NAME = 'netsh'
9
+ def self.version(path=nil)
10
+ executable = path ? File.join(path, COMMAND_NAME) : COMMAND_NAME
11
+ GetVersion[executable]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,412 @@
1
+ # Generated code. Do not modify.
2
+
3
+ require_relative '../internal/command_base'
4
+ require_relative '../internal/command_builder_config'
5
+ require_relative '../internal/underlying_builder'
6
+
7
+ module FluentCommandBuilder
8
+ module Netsh
9
+ module V61
10
+ VERSION = '6.1'
11
+ @@config = CommandBuilderConfig.new FluentCommandBuilder::Netsh::COMMAND_NAME, VERSION
12
+ def configure_netsh
13
+ yield @@config
14
+ @@config.validate_path
15
+ @@config.validate_version
16
+ end
17
+ def netsh
18
+ b = UnderlyingBuilder.new @@config
19
+ c = Netsh.new(b)
20
+ yield b if block_given?
21
+ c
22
+ end
23
+ class Netsh < CommandBase
24
+ def initialize(underlying_builder)
25
+ super underlying_builder
26
+ end
27
+ def advfirewall
28
+ Advfirewall.new @b
29
+ end
30
+ def http
31
+ Http.new @b
32
+ end
33
+ end
34
+ class Advfirewall < CommandBase
35
+ def initialize(underlying_builder)
36
+ super underlying_builder
37
+ @b.append ' advfirewall'
38
+ end
39
+ def firewall
40
+ Firewall.new @b
41
+ end
42
+ end
43
+ class Firewall < CommandBase
44
+ def initialize(underlying_builder)
45
+ super underlying_builder
46
+ @b.append ' firewall'
47
+ end
48
+ def add_rule(rule_name, direction, action)
49
+ AddRule.new @b, rule_name, direction, action
50
+ end
51
+ def delete_rule(rule_name)
52
+ DeleteRule.new @b, rule_name
53
+ end
54
+ def set_rule
55
+ SetRule.new @b
56
+ end
57
+ def show_rule(rule_name)
58
+ ShowRule.new @b, rule_name
59
+ end
60
+ end
61
+ class AddRule < CommandBase
62
+ def initialize(underlying_builder, rule_name, direction, action)
63
+ super underlying_builder
64
+ @b.append " add rule name=#{@b.format rule_name} dir=#{@b.format direction} action=#{@b.format action}"
65
+ end
66
+ def program(path)
67
+ @b.append " program=#{@b.format path}"
68
+ yield @b if block_given?
69
+ self
70
+ end
71
+ def service(service_short_name)
72
+ @b.append " service=#{@b.format service_short_name}"
73
+ yield @b if block_given?
74
+ self
75
+ end
76
+ def description(rule_description)
77
+ @b.append " description=#{@b.format rule_description}"
78
+ yield @b if block_given?
79
+ self
80
+ end
81
+ def enable(enable)
82
+ @b.append " enable=#{@b.format enable}"
83
+ yield @b if block_given?
84
+ self
85
+ end
86
+ def profile(profile)
87
+ @b.append " profile=#{@b.format profile}"
88
+ yield @b if block_given?
89
+ self
90
+ end
91
+ def local_ip(address)
92
+ @b.append " localIp=#{@b.format address, ','}"
93
+ yield @b if block_given?
94
+ self
95
+ end
96
+ def remote_ip(address)
97
+ @b.append " remoteIp=#{@b.format address, ','}"
98
+ yield @b if block_given?
99
+ self
100
+ end
101
+ def local_port(port)
102
+ @b.append " localPort=#{@b.format port, ','}"
103
+ yield @b if block_given?
104
+ self
105
+ end
106
+ def remote_port(port)
107
+ @b.append " remotePort=#{@b.format port, ','}"
108
+ yield @b if block_given?
109
+ self
110
+ end
111
+ def protocol(protocol)
112
+ @b.append " protocol=#{@b.format protocol}"
113
+ yield @b if block_given?
114
+ self
115
+ end
116
+ def interface_type(type)
117
+ @b.append " interfaceType=#{@b.format type}"
118
+ yield @b if block_given?
119
+ self
120
+ end
121
+ def remote_computer_group(sddl_string)
122
+ @b.append " rmtcomputergrp=#{@b.format sddl_string}"
123
+ yield @b if block_given?
124
+ self
125
+ end
126
+ def remote_user_group(sddl_string)
127
+ @b.append " rmtusgrp=#{@b.format sddl_string}"
128
+ yield @b if block_given?
129
+ self
130
+ end
131
+ def edge(edge)
132
+ @b.append " edge=#{@b.format edge}"
133
+ yield @b if block_given?
134
+ self
135
+ end
136
+ def security(security)
137
+ @b.append " security=#{@b.format security}"
138
+ yield @b if block_given?
139
+ self
140
+ end
141
+ end
142
+ class DeleteRule < CommandBase
143
+ def initialize(underlying_builder, rule_name)
144
+ super underlying_builder
145
+ @b.append " delete rule name=#{@b.format rule_name}"
146
+ end
147
+ def dir(direction)
148
+ @b.append " dir=#{@b.format direction}"
149
+ yield @b if block_given?
150
+ self
151
+ end
152
+ def profile(profile)
153
+ @b.append " profile=#{@b.format profile}"
154
+ yield @b if block_given?
155
+ self
156
+ end
157
+ def program(path)
158
+ @b.append " program=#{@b.format path}"
159
+ yield @b if block_given?
160
+ self
161
+ end
162
+ def service(service_short_name)
163
+ @b.append " service=#{@b.format service_short_name}"
164
+ yield @b if block_given?
165
+ self
166
+ end
167
+ def local_ip(address)
168
+ @b.append " localIp=#{@b.format address, ','}"
169
+ yield @b if block_given?
170
+ self
171
+ end
172
+ def remote_ip(address)
173
+ @b.append " remoteIp=#{@b.format address, ','}"
174
+ yield @b if block_given?
175
+ self
176
+ end
177
+ def local_port(port)
178
+ @b.append " localPort=#{@b.format port, ','}"
179
+ yield @b if block_given?
180
+ self
181
+ end
182
+ def remote_port(port)
183
+ @b.append " remotePort=#{@b.format port, ','}"
184
+ yield @b if block_given?
185
+ self
186
+ end
187
+ def protocol(protocol)
188
+ @b.append " protocol=#{@b.format protocol}"
189
+ yield @b if block_given?
190
+ self
191
+ end
192
+ end
193
+ class SetRule < CommandBase
194
+ def initialize(underlying_builder)
195
+ super underlying_builder
196
+ @b.append ' set rule'
197
+ end
198
+ def group(group_name)
199
+ @b.append " group=#{@b.format group_name}"
200
+ yield @b if block_given?
201
+ self
202
+ end
203
+ def dir(direction)
204
+ @b.append " dir=#{@b.format direction}"
205
+ yield @b if block_given?
206
+ self
207
+ end
208
+ def profile(profile)
209
+ @b.append " profile=#{@b.format profile}"
210
+ yield @b if block_given?
211
+ self
212
+ end
213
+ def program(path)
214
+ @b.append " program=#{@b.format path}"
215
+ yield @b if block_given?
216
+ self
217
+ end
218
+ def service(service_short_name)
219
+ @b.append " service=#{@b.format service_short_name}"
220
+ yield @b if block_given?
221
+ self
222
+ end
223
+ def local_ip(address)
224
+ @b.append " localIp=#{@b.format address, ','}"
225
+ yield @b if block_given?
226
+ self
227
+ end
228
+ def remote_ip(address)
229
+ @b.append " remoteIp=#{@b.format address, ','}"
230
+ yield @b if block_given?
231
+ self
232
+ end
233
+ def local_port(port)
234
+ @b.append " localPort=#{@b.format port, ','}"
235
+ yield @b if block_given?
236
+ self
237
+ end
238
+ def remote_port(port)
239
+ @b.append " remotePort=#{@b.format port, ','}"
240
+ yield @b if block_given?
241
+ self
242
+ end
243
+ def protocol(protocol)
244
+ @b.append " protocol=#{@b.format protocol}"
245
+ yield @b if block_given?
246
+ self
247
+ end
248
+ def new
249
+ New.new @b
250
+ end
251
+ end
252
+ class New < CommandBase
253
+ def initialize(underlying_builder)
254
+ super underlying_builder
255
+ @b.append ' new'
256
+ end
257
+ def name(rule_name)
258
+ @b.append " name=#{@b.format rule_name}"
259
+ yield @b if block_given?
260
+ self
261
+ end
262
+ def dir(direction)
263
+ @b.append " dir=#{@b.format direction}"
264
+ yield @b if block_given?
265
+ self
266
+ end
267
+ def program(path)
268
+ @b.append " program=#{@b.format path}"
269
+ yield @b if block_given?
270
+ self
271
+ end
272
+ def service(service_short_name)
273
+ @b.append " service=#{@b.format service_short_name}"
274
+ yield @b if block_given?
275
+ self
276
+ end
277
+ def action(action)
278
+ @b.append " action=#{@b.format action}"
279
+ yield @b if block_given?
280
+ self
281
+ end
282
+ def description(rule_description)
283
+ @b.append " description=#{@b.format rule_description}"
284
+ yield @b if block_given?
285
+ self
286
+ end
287
+ def enable(enable)
288
+ @b.append " enable=#{@b.format enable}"
289
+ yield @b if block_given?
290
+ self
291
+ end
292
+ def profile(profile)
293
+ @b.append " profile=#{@b.format profile}"
294
+ yield @b if block_given?
295
+ self
296
+ end
297
+ def local_ip(address)
298
+ @b.append " localIp=#{@b.format address, ','}"
299
+ yield @b if block_given?
300
+ self
301
+ end
302
+ def remote_ip(address)
303
+ @b.append " remoteIp=#{@b.format address, ','}"
304
+ yield @b if block_given?
305
+ self
306
+ end
307
+ def local_port(port)
308
+ @b.append " localPort=#{@b.format port, ','}"
309
+ yield @b if block_given?
310
+ self
311
+ end
312
+ def remote_port(port)
313
+ @b.append " remotePort=#{@b.format port, ','}"
314
+ yield @b if block_given?
315
+ self
316
+ end
317
+ def protocol(protocol)
318
+ @b.append " protocol=#{@b.format protocol}"
319
+ yield @b if block_given?
320
+ self
321
+ end
322
+ def interface_type(type)
323
+ @b.append " interfaceType=#{@b.format type}"
324
+ yield @b if block_given?
325
+ self
326
+ end
327
+ def remote_computer_group(sddl_string)
328
+ @b.append " rmtcomputergrp=#{@b.format sddl_string}"
329
+ yield @b if block_given?
330
+ self
331
+ end
332
+ def remote_user_group(sddl_string)
333
+ @b.append " rmtusgrp=#{@b.format sddl_string}"
334
+ yield @b if block_given?
335
+ self
336
+ end
337
+ def edge(edge)
338
+ @b.append " edge=#{@b.format edge}"
339
+ yield @b if block_given?
340
+ self
341
+ end
342
+ def security(security)
343
+ @b.append " security=#{@b.format security}"
344
+ yield @b if block_given?
345
+ self
346
+ end
347
+ end
348
+ class ShowRule < CommandBase
349
+ def initialize(underlying_builder, rule_name)
350
+ super underlying_builder
351
+ @b.append " show rule name=#{@b.format rule_name}"
352
+ end
353
+ def profile(profile)
354
+ @b.append " profile=#{@b.format profile}"
355
+ yield @b if block_given?
356
+ self
357
+ end
358
+ def type(type)
359
+ @b.append " type=#{@b.format type}"
360
+ yield @b if block_given?
361
+ self
362
+ end
363
+ def verbose
364
+ @b.append ' verbose'
365
+ yield @b if block_given?
366
+ self
367
+ end
368
+ end
369
+ class Http < CommandBase
370
+ def initialize(underlying_builder)
371
+ super underlying_builder
372
+ @b.append ' http'
373
+ end
374
+ def add_url_acl(url)
375
+ AddUrlAcl.new @b, url
376
+ end
377
+ def delete_url_acl(url)
378
+ @b.append " delete urlacl url=#{@b.format url}"
379
+ yield @b if block_given?
380
+ self
381
+ end
382
+ end
383
+ class AddUrlAcl < CommandBase
384
+ def initialize(underlying_builder, url)
385
+ super underlying_builder
386
+ @b.append " add urlacl url=#{@b.format url}"
387
+ end
388
+ def user(user)
389
+ @b.append " user=#{@b.format user}"
390
+ yield @b if block_given?
391
+ self
392
+ end
393
+ def listen(listen)
394
+ @b.append " listen=#{@b.format listen}"
395
+ yield @b if block_given?
396
+ self
397
+ end
398
+ def delegate(delegate)
399
+ @b.append " delegate=#{@b.format delegate}"
400
+ yield @b if block_given?
401
+ self
402
+ end
403
+ def sddl(sddl)
404
+ @b.append " sddl=#{@b.format sddl}"
405
+ yield @b if block_given?
406
+ self
407
+ end
408
+ end
409
+
410
+ end
411
+ end
412
+ end