fluent_command_builder 0.9.7 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. data/lib/fluent_command_builder/command_builder.rb +2 -2
  2. data/lib/fluent_command_builder/command_executors/backticks_executor.rb +1 -1
  3. data/lib/fluent_command_builder/command_executors/dry_run_executor.rb +1 -1
  4. data/lib/fluent_command_builder/command_executors/rake_sh_executor.rb +1 -1
  5. data/lib/fluent_command_builder/command_executors/system_executor.rb +1 -1
  6. data/lib/fluent_command_builder/execution_context.rb +2 -2
  7. data/lib/fluent_command_builder/internal/argument_formatter.rb +1 -1
  8. data/lib/fluent_command_builder/internal/command_builder_config.rb +7 -10
  9. data/lib/fluent_command_builder/internal/path.rb +9 -3
  10. data/lib/fluent_command_builder/internal/path_validator.rb +4 -5
  11. data/lib/fluent_command_builder/internal/underlying_builder.rb +3 -3
  12. data/lib/fluent_command_builder/version_validator.rb +11 -6
  13. metadata +55 -90
  14. data/lib/fluent_command_builder/command_builders/appcfg_python.rb +0 -19
  15. data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +0 -2613
  16. data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +0 -2603
  17. data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +0 -19
  18. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +0 -103
  19. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +0 -103
  20. data/lib/fluent_command_builder/command_builders/bundle.rb +0 -19
  21. data/lib/fluent_command_builder/command_builders/bundle_11.rb +0 -321
  22. data/lib/fluent_command_builder/command_builders/bundle_12.rb +0 -345
  23. data/lib/fluent_command_builder/command_builders/cucumber.rb +0 -19
  24. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +0 -178
  25. data/lib/fluent_command_builder/command_builders/cucumber_12.rb +0 -183
  26. data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +0 -19
  27. data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +0 -208
  28. data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +0 -208
  29. data/lib/fluent_command_builder/command_builders/dotcover.rb +0 -19
  30. data/lib/fluent_command_builder/command_builders/dotcover_10.rb +0 -69
  31. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +0 -299
  32. data/lib/fluent_command_builder/command_builders/dotcover_12.rb +0 -299
  33. data/lib/fluent_command_builder/command_builders/dotcover_20.rb +0 -309
  34. data/lib/fluent_command_builder/command_builders/dotcover_21.rb +0 -309
  35. data/lib/fluent_command_builder/command_builders/dotcover_22.rb +0 -309
  36. data/lib/fluent_command_builder/command_builders/fastlinkchecker.rb +0 -19
  37. data/lib/fluent_command_builder/command_builders/fastlinkchecker_21.rb +0 -263
  38. data/lib/fluent_command_builder/command_builders/installutil.rb +0 -19
  39. data/lib/fluent_command_builder/command_builders/installutil_11.rb +0 -64
  40. data/lib/fluent_command_builder/command_builders/installutil_20.rb +0 -69
  41. data/lib/fluent_command_builder/command_builders/installutil_35.rb +0 -69
  42. data/lib/fluent_command_builder/command_builders/installutil_40.rb +0 -75
  43. data/lib/fluent_command_builder/command_builders/msbuild.rb +0 -19
  44. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +0 -94
  45. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +0 -94
  46. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +0 -134
  47. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +0 -137
  48. data/lib/fluent_command_builder/command_builders/msdeploy.rb +0 -19
  49. data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +0 -182
  50. data/lib/fluent_command_builder/command_builders/mstest.rb +0 -19
  51. data/lib/fluent_command_builder/command_builders/mstest_100.rb +0 -132
  52. data/lib/fluent_command_builder/command_builders/mstest_80.rb +0 -112
  53. data/lib/fluent_command_builder/command_builders/mstest_90.rb +0 -117
  54. data/lib/fluent_command_builder/command_builders/netsh.rb +0 -19
  55. data/lib/fluent_command_builder/command_builders/netsh_61.rb +0 -413
  56. data/lib/fluent_command_builder/command_builders/nuget.rb +0 -19
  57. data/lib/fluent_command_builder/command_builders/nuget_20.rb +0 -437
  58. data/lib/fluent_command_builder/command_builders/nuget_21.rb +0 -533
  59. data/lib/fluent_command_builder/command_builders/nunit.rb +0 -19
  60. data/lib/fluent_command_builder/command_builders/nunit_25.rb +0 -153
  61. data/lib/fluent_command_builder/command_builders/nunit_26.rb +0 -193
  62. data/lib/fluent_command_builder/command_builders/rake.rb +0 -19
  63. data/lib/fluent_command_builder/command_builders/rake_09.rb +0 -156
  64. data/lib/fluent_command_builder/command_builders/rake_100.rb +0 -194
  65. data/lib/fluent_command_builder/command_builders/schtasks.rb +0 -19
  66. data/lib/fluent_command_builder/command_builders/schtasks_61.rb +0 -353
  67. data/lib/fluent_command_builder/command_builders/security_osx.rb +0 -19
  68. data/lib/fluent_command_builder/command_builders/security_osx_107.rb +0 -188
  69. data/lib/fluent_command_builder/command_builders/security_osx_108.rb +0 -188
  70. data/lib/fluent_command_builder/command_builders/sevenzip.rb +0 -19
  71. data/lib/fluent_command_builder/command_builders/sevenzip_920.rb +0 -523
  72. data/lib/fluent_command_builder/command_builders/simian.rb +0 -19
  73. data/lib/fluent_command_builder/command_builders/simian_23.rb +0 -147
  74. data/lib/fluent_command_builder/command_builders/team_foundation.rb +0 -19
  75. data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +0 -2160
  76. data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +0 -19
  77. data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +0 -1885
  78. data/lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb +0 -2003
  79. data/lib/fluent_command_builder/command_builders/xcodebuild.rb +0 -19
  80. data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +0 -276
  81. data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +0 -326
  82. data/lib/fluent_command_builder/command_builders/xcodebuild_45.rb +0 -331
  83. data/lib/fluent_command_builder/internal/path_finder.rb +0 -20
  84. data/lib/fluent_command_builder/internal/path_finders/unix_path_finder.rb +0 -13
  85. data/lib/fluent_command_builder/internal/path_finders/windows_path_finder.rb +0 -14
  86. data/lib/fluent_command_builder/version_detectors.rb +0 -1
  87. data/lib/fluent_command_builder/version_detectors/appengine_python_version_detector.rb +0 -23
  88. data/lib/fluent_command_builder/version_detectors/default_version_detector.rb +0 -35
  89. data/lib/fluent_command_builder/version_detectors/dot_net_framework_version_detector.rb +0 -24
  90. data/lib/fluent_command_builder/version_detectors/osx_version_detector.rb +0 -19
  91. data/lib/fluent_command_builder/version_detectors/standard_version_detector.rb +0 -30
  92. data/lib/fluent_command_builder/version_detectors/windows_version_detector.rb +0 -12
@@ -1,19 +0,0 @@
1
- # Generated code. Do not modify.
2
-
3
- require File.expand_path(File.dirname(__FILE__) + '/../version_detectors')
4
- require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
5
-
6
- module FluentCommandBuilder
7
- module SecurityOSX
8
- COMMAND_NAME = 'security'
9
- def self.version_detector
10
- @version_detector ||= OsxVersionDetector.new
11
- end
12
- def self.version_detector=(value)
13
- @version_detector = value
14
- end
15
- def self.version(path=nil)
16
- self.version_detector.version path
17
- end
18
- end
19
- end
@@ -1,188 +0,0 @@
1
- # Generated code. Do not modify.
2
-
3
- require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
4
- require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
5
- require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
6
-
7
- module FluentCommandBuilder
8
- module SecurityOSX
9
- module V107
10
- VERSION = '10.7'
11
- @@config = CommandBuilderConfig.new FluentCommandBuilder::SecurityOSX::COMMAND_NAME, VERSION
12
- @@config.version_detector = FluentCommandBuilder::SecurityOSX.version_detector
13
- def configure_security_osx
14
- yield @@config
15
- @@config.validate_path
16
- @@config.validate_version
17
- end
18
- def security_osx
19
- b = UnderlyingBuilder.new @@config
20
- c = SecurityOSX.new(b)
21
- yield b if block_given?
22
- c
23
- end
24
- class SecurityOSX < CommandBase
25
- def initialize(underlying_builder)
26
- super underlying_builder
27
- end
28
- def delete_certificate
29
- DeleteCertificate.new @b
30
- end
31
- def find_certificate
32
- FindCertificate.new @b
33
- end
34
- def import(input_file)
35
- Import.new @b, input_file
36
- end
37
- def unlock_keychain
38
- UnlockKeychain.new @b
39
- end
40
- def help
41
- @b.append ' help'
42
- yield @b if block_given?
43
- self
44
- end
45
- end
46
- class DeleteCertificate < CommandBase
47
- def initialize(underlying_builder)
48
- super underlying_builder
49
- @b.append ' delete-certificate'
50
- end
51
- def common_name(name)
52
- @b.append " -c #{@b.format name}"
53
- yield @b if block_given?
54
- self
55
- end
56
- def hash(hash)
57
- @b.append " -Z #{@b.format hash}"
58
- yield @b if block_given?
59
- self
60
- end
61
- def delete_user_trust_settings
62
- @b.append ' -t'
63
- yield @b if block_given?
64
- self
65
- end
66
- def keychain(keychain)
67
- @b.append " #{@b.format keychain}"
68
- yield @b if block_given?
69
- self
70
- end
71
- end
72
- class FindCertificate < CommandBase
73
- def initialize(underlying_builder)
74
- super underlying_builder
75
- @b.append ' find-certificate'
76
- end
77
- def all
78
- @b.append ' -a'
79
- yield @b if block_given?
80
- self
81
- end
82
- def name(name)
83
- @b.append " -c #{@b.format name}"
84
- yield @b if block_given?
85
- self
86
- end
87
- def email_address(email_address)
88
- @b.append " -e #{@b.format email_address}"
89
- yield @b if block_given?
90
- self
91
- end
92
- def show_email_addresses
93
- @b.append ' -m'
94
- yield @b if block_given?
95
- self
96
- end
97
- def output_pem_format
98
- @b.append ' -p'
99
- yield @b if block_given?
100
- self
101
- end
102
- def print_sha1_hash
103
- @b.append ' -Z'
104
- yield @b if block_given?
105
- self
106
- end
107
- def keychain(keychain)
108
- @b.append " #{@b.format keychain}"
109
- yield @b if block_given?
110
- self
111
- end
112
- end
113
- class Import < CommandBase
114
- def initialize(underlying_builder, input_file)
115
- super underlying_builder
116
- @b.append " import #{@b.format input_file}"
117
- end
118
- def keychain(keychain)
119
- @b.append " -k #{@b.format keychain}"
120
- yield @b if block_given?
121
- self
122
- end
123
- def type(type)
124
- @b.append " -t #{@b.format type}"
125
- yield @b if block_given?
126
- self
127
- end
128
- def format(format)
129
- @b.append " -f #{@b.format format}"
130
- yield @b if block_given?
131
- self
132
- end
133
- def wrapped
134
- @b.append ' -w'
135
- yield @b if block_given?
136
- self
137
- end
138
- def not_extractable
139
- @b.append ' -x'
140
- yield @b if block_given?
141
- self
142
- end
143
- def password(password)
144
- @b.append " -P #{@b.format_password password}"
145
- yield @b if block_given?
146
- self
147
- end
148
- def attribute(name, value)
149
- @b.append " -a #{@b.format name} #{@b.format value}"
150
- yield @b if block_given?
151
- self
152
- end
153
- def allow_without_warning
154
- @b.append ' -A'
155
- yield @b if block_given?
156
- self
157
- end
158
- def allow_application(app_path)
159
- @b.append " -T #{@b.format app_path}"
160
- yield @b if block_given?
161
- self
162
- end
163
- end
164
- class UnlockKeychain < CommandBase
165
- def initialize(underlying_builder)
166
- super underlying_builder
167
- @b.append ' unlock-keychain'
168
- end
169
- def no_password
170
- @b.append ' -u'
171
- yield @b if block_given?
172
- self
173
- end
174
- def password(password)
175
- @b.append " -p #{@b.format_password password}"
176
- yield @b if block_given?
177
- self
178
- end
179
- def keychain(keychain)
180
- @b.append " #{@b.format keychain}"
181
- yield @b if block_given?
182
- self
183
- end
184
- end
185
-
186
- end
187
- end
188
- end
@@ -1,188 +0,0 @@
1
- # Generated code. Do not modify.
2
-
3
- require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
4
- require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
5
- require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
6
-
7
- module FluentCommandBuilder
8
- module SecurityOSX
9
- module V108
10
- VERSION = '10.8'
11
- @@config = CommandBuilderConfig.new FluentCommandBuilder::SecurityOSX::COMMAND_NAME, VERSION
12
- @@config.version_detector = FluentCommandBuilder::SecurityOSX.version_detector
13
- def configure_security_osx
14
- yield @@config
15
- @@config.validate_path
16
- @@config.validate_version
17
- end
18
- def security_osx
19
- b = UnderlyingBuilder.new @@config
20
- c = SecurityOSX.new(b)
21
- yield b if block_given?
22
- c
23
- end
24
- class SecurityOSX < CommandBase
25
- def initialize(underlying_builder)
26
- super underlying_builder
27
- end
28
- def delete_certificate
29
- DeleteCertificate.new @b
30
- end
31
- def find_certificate
32
- FindCertificate.new @b
33
- end
34
- def import(input_file)
35
- Import.new @b, input_file
36
- end
37
- def unlock_keychain
38
- UnlockKeychain.new @b
39
- end
40
- def help
41
- @b.append ' help'
42
- yield @b if block_given?
43
- self
44
- end
45
- end
46
- class DeleteCertificate < CommandBase
47
- def initialize(underlying_builder)
48
- super underlying_builder
49
- @b.append ' delete-certificate'
50
- end
51
- def common_name(name)
52
- @b.append " -c #{@b.format name}"
53
- yield @b if block_given?
54
- self
55
- end
56
- def hash(hash)
57
- @b.append " -Z #{@b.format hash}"
58
- yield @b if block_given?
59
- self
60
- end
61
- def delete_user_trust_settings
62
- @b.append ' -t'
63
- yield @b if block_given?
64
- self
65
- end
66
- def keychain(keychain)
67
- @b.append " #{@b.format keychain}"
68
- yield @b if block_given?
69
- self
70
- end
71
- end
72
- class FindCertificate < CommandBase
73
- def initialize(underlying_builder)
74
- super underlying_builder
75
- @b.append ' find-certificate'
76
- end
77
- def all
78
- @b.append ' -a'
79
- yield @b if block_given?
80
- self
81
- end
82
- def name(name)
83
- @b.append " -c #{@b.format name}"
84
- yield @b if block_given?
85
- self
86
- end
87
- def email_address(email_address)
88
- @b.append " -e #{@b.format email_address}"
89
- yield @b if block_given?
90
- self
91
- end
92
- def show_email_addresses
93
- @b.append ' -m'
94
- yield @b if block_given?
95
- self
96
- end
97
- def output_pem_format
98
- @b.append ' -p'
99
- yield @b if block_given?
100
- self
101
- end
102
- def print_sha1_hash
103
- @b.append ' -Z'
104
- yield @b if block_given?
105
- self
106
- end
107
- def keychain(keychain)
108
- @b.append " #{@b.format keychain}"
109
- yield @b if block_given?
110
- self
111
- end
112
- end
113
- class Import < CommandBase
114
- def initialize(underlying_builder, input_file)
115
- super underlying_builder
116
- @b.append " import #{@b.format input_file}"
117
- end
118
- def keychain(keychain)
119
- @b.append " -k #{@b.format keychain}"
120
- yield @b if block_given?
121
- self
122
- end
123
- def type(type)
124
- @b.append " -t #{@b.format type}"
125
- yield @b if block_given?
126
- self
127
- end
128
- def format(format)
129
- @b.append " -f #{@b.format format}"
130
- yield @b if block_given?
131
- self
132
- end
133
- def wrapped
134
- @b.append ' -w'
135
- yield @b if block_given?
136
- self
137
- end
138
- def not_extractable
139
- @b.append ' -x'
140
- yield @b if block_given?
141
- self
142
- end
143
- def password(password)
144
- @b.append " -P #{@b.format_password password}"
145
- yield @b if block_given?
146
- self
147
- end
148
- def attribute(name, value)
149
- @b.append " -a #{@b.format name} #{@b.format value}"
150
- yield @b if block_given?
151
- self
152
- end
153
- def allow_without_warning
154
- @b.append ' -A'
155
- yield @b if block_given?
156
- self
157
- end
158
- def allow_application(app_path)
159
- @b.append " -T #{@b.format app_path}"
160
- yield @b if block_given?
161
- self
162
- end
163
- end
164
- class UnlockKeychain < CommandBase
165
- def initialize(underlying_builder)
166
- super underlying_builder
167
- @b.append ' unlock-keychain'
168
- end
169
- def no_password
170
- @b.append ' -u'
171
- yield @b if block_given?
172
- self
173
- end
174
- def password(password)
175
- @b.append " -p #{@b.format_password password}"
176
- yield @b if block_given?
177
- self
178
- end
179
- def keychain(keychain)
180
- @b.append " #{@b.format keychain}"
181
- yield @b if block_given?
182
- self
183
- end
184
- end
185
-
186
- end
187
- end
188
- end
@@ -1,19 +0,0 @@
1
- # Generated code. Do not modify.
2
-
3
- require File.expand_path(File.dirname(__FILE__) + '/../version_detectors')
4
- require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
5
-
6
- module FluentCommandBuilder
7
- module SevenZip
8
- COMMAND_NAME = '7za'
9
- def self.version_detector
10
- @version_detector ||= StandardVersionDetector.new COMMAND_NAME
11
- end
12
- def self.version_detector=(value)
13
- @version_detector = value
14
- end
15
- def self.version(path=nil)
16
- self.version_detector.version path
17
- end
18
- end
19
- end
@@ -1,523 +0,0 @@
1
- # Generated code. Do not modify.
2
-
3
- require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
4
- require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
5
- require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
6
-
7
- module FluentCommandBuilder
8
- module SevenZip
9
- module V920
10
- VERSION = '9.20'
11
- @@config = CommandBuilderConfig.new FluentCommandBuilder::SevenZip::COMMAND_NAME, VERSION
12
- @@config.version_detector = FluentCommandBuilder::SevenZip.version_detector
13
- def configure_sevenzip
14
- yield @@config
15
- @@config.validate_path
16
- @@config.validate_version
17
- end
18
- def sevenzip
19
- b = UnderlyingBuilder.new @@config
20
- c = SevenZip.new(b)
21
- yield b if block_given?
22
- c
23
- end
24
- class SevenZip < CommandBase
25
- def initialize(underlying_builder)
26
- super underlying_builder
27
- end
28
- def add(archive, file_ref)
29
- Add.new @b, archive, file_ref
30
- end
31
- def bench(number_of_iterations)
32
- Bench.new @b, number_of_iterations
33
- end
34
- def delete(archive, files)
35
- Delete.new @b, archive, files
36
- end
37
- def extract(archive, files)
38
- Extract.new @b, archive, files
39
- end
40
- def list(archive)
41
- List.new @b, archive
42
- end
43
- def test(archive, files)
44
- Test.new @b, archive, files
45
- end
46
- def update(archive, files)
47
- Update.new @b, archive, files
48
- end
49
- def extract_with_full_paths(archive, files=nil)
50
- ExtractWithFullPaths.new @b, archive, files
51
- end
52
- end
53
- class Add < CommandBase
54
- def initialize(underlying_builder, archive, file_ref)
55
- super underlying_builder
56
- @b.append " a #{@b.format archive} #{@b.format file_ref}"
57
- end
58
- def include(file_ref, recurse_type=nil)
59
- @b.append ' -i'
60
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
61
- @b.append "#{@b.format file_ref}"
62
- yield @b if block_given?
63
- self
64
- end
65
- def set_compression_method(method_parameters)
66
- @b.append " -m#{@b.format method_parameters}"
67
- yield @b if block_given?
68
- self
69
- end
70
- def password(password)
71
- @b.append " -p#{@b.format_password password}"
72
- yield @b if block_given?
73
- self
74
- end
75
- def recursive(modifier=nil)
76
- @b.append ' -r'
77
- @b.append "#{@b.format modifier}" unless modifier.nil?
78
- yield @b if block_given?
79
- self
80
- end
81
- def create_sfx_archive(sfx_module=nil)
82
- @b.append ' -sfx'
83
- @b.append "#{@b.format sfx_module}" unless sfx_module.nil?
84
- yield @b if block_given?
85
- self
86
- end
87
- def read_data_from_stdin(file_name=nil)
88
- @b.append ' -si'
89
- @b.append "#{@b.format file_name}" unless file_name.nil?
90
- yield @b if block_given?
91
- self
92
- end
93
- def write_data_to_stdout
94
- @b.append ' -so'
95
- yield @b if block_given?
96
- self
97
- end
98
- def compress_files_open_for_writing
99
- @b.append ' -ssw'
100
- yield @b if block_given?
101
- self
102
- end
103
- def type(archive_type)
104
- @b.append " -t#{@b.format archive_type}"
105
- yield @b if block_given?
106
- self
107
- end
108
- def update_options(args)
109
- @b.append " -u#{@b.format args}"
110
- yield @b if block_given?
111
- self
112
- end
113
- def create_volumes(size, unit_of_measure=nil)
114
- @b.append " -v#{@b.format size}"
115
- @b.append "#{@b.format unit_of_measure}" unless unit_of_measure.nil?
116
- yield @b if block_given?
117
- self
118
- end
119
- def working_dir(dir_path=nil)
120
- @b.append ' -w'
121
- @b.append "#{@b.format dir_path}" unless dir_path.nil?
122
- yield @b if block_given?
123
- self
124
- end
125
- def exclude(file_ref, recurse_type=nil)
126
- @b.append ' -x'
127
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
128
- @b.append "#{@b.format file_ref}"
129
- yield @b if block_given?
130
- self
131
- end
132
- end
133
- class Bench < CommandBase
134
- def initialize(underlying_builder, number_of_iterations)
135
- super underlying_builder
136
- @b.append " b #{@b.format number_of_iterations}"
137
- end
138
- def mmt(n)
139
- @b.append " -mmt#{@b.format n}"
140
- yield @b if block_given?
141
- self
142
- end
143
- def md(n)
144
- @b.append " -md#{@b.format n}"
145
- yield @b if block_given?
146
- self
147
- end
148
- def mm(method)
149
- @b.append " -mm=#{@b.format method}"
150
- yield @b if block_given?
151
- self
152
- end
153
- end
154
- class Delete < CommandBase
155
- def initialize(underlying_builder, archive, files)
156
- super underlying_builder
157
- @b.append " d #{@b.format archive} #{@b.format files}"
158
- end
159
- def include(file_ref, recurse_type=nil)
160
- @b.append ' -i'
161
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
162
- @b.append "#{@b.format file_ref}"
163
- yield @b if block_given?
164
- self
165
- end
166
- def set_compression_method(method_parameters)
167
- @b.append " -m#{@b.format method_parameters}"
168
- yield @b if block_given?
169
- self
170
- end
171
- def password(password)
172
- @b.append " -p#{@b.format_password password}"
173
- yield @b if block_given?
174
- self
175
- end
176
- def recursive(modifier=nil)
177
- @b.append ' -r'
178
- @b.append "#{@b.format modifier}" unless modifier.nil?
179
- yield @b if block_given?
180
- self
181
- end
182
- def update_options(args)
183
- @b.append " -u#{@b.format args}"
184
- yield @b if block_given?
185
- self
186
- end
187
- def working_dir(dir_path=nil)
188
- @b.append ' -w'
189
- @b.append "#{@b.format dir_path}" unless dir_path.nil?
190
- yield @b if block_given?
191
- self
192
- end
193
- def exclude(file_ref, recurse_type=nil)
194
- @b.append ' -x'
195
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
196
- @b.append "#{@b.format file_ref}"
197
- yield @b if block_given?
198
- self
199
- end
200
- end
201
- class Extract < CommandBase
202
- def initialize(underlying_builder, archive, files)
203
- super underlying_builder
204
- @b.append " e #{@b.format archive} #{@b.format files}"
205
- end
206
- def ai
207
- @b.append ' -ai'
208
- yield @b if block_given?
209
- self
210
- end
211
- def an
212
- @b.append ' -an'
213
- yield @b if block_given?
214
- self
215
- end
216
- def ao
217
- @b.append ' -ao'
218
- yield @b if block_given?
219
- self
220
- end
221
- def ax
222
- @b.append ' -ax'
223
- yield @b if block_given?
224
- self
225
- end
226
- def include(file_ref, recurse_type=nil)
227
- @b.append ' -i'
228
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
229
- @b.append "#{@b.format file_ref}"
230
- yield @b if block_given?
231
- self
232
- end
233
- def output(dir_path)
234
- @b.append " -o#{@b.format dir_path}"
235
- yield @b if block_given?
236
- self
237
- end
238
- def password(password)
239
- @b.append " -p#{@b.format_password password}"
240
- yield @b if block_given?
241
- self
242
- end
243
- def recursive(modifier=nil)
244
- @b.append ' -r'
245
- @b.append "#{@b.format modifier}" unless modifier.nil?
246
- yield @b if block_given?
247
- self
248
- end
249
- def write_data_to_stdout
250
- @b.append ' -so'
251
- yield @b if block_given?
252
- self
253
- end
254
- def type(archive_type)
255
- @b.append " -t#{@b.format archive_type}"
256
- yield @b if block_given?
257
- self
258
- end
259
- def exclude(file_ref, recurse_type=nil)
260
- @b.append ' -x'
261
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
262
- @b.append "#{@b.format file_ref}"
263
- yield @b if block_given?
264
- self
265
- end
266
- def y
267
- @b.append ' -y'
268
- yield @b if block_given?
269
- self
270
- end
271
- end
272
- class List < CommandBase
273
- def initialize(underlying_builder, archive)
274
- super underlying_builder
275
- @b.append " l #{@b.format archive}"
276
- end
277
- def ai
278
- @b.append ' -ai'
279
- yield @b if block_given?
280
- self
281
- end
282
- def an
283
- @b.append ' -an'
284
- yield @b if block_given?
285
- self
286
- end
287
- def ax
288
- @b.append ' -ax'
289
- yield @b if block_given?
290
- self
291
- end
292
- def include(file_ref, recurse_type=nil)
293
- @b.append ' -i'
294
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
295
- @b.append "#{@b.format file_ref}"
296
- yield @b if block_given?
297
- self
298
- end
299
- def slt
300
- @b.append ' -slt'
301
- yield @b if block_given?
302
- self
303
- end
304
- def password(password)
305
- @b.append " -p#{@b.format_password password}"
306
- yield @b if block_given?
307
- self
308
- end
309
- def recursive(modifier=nil)
310
- @b.append ' -r'
311
- @b.append "#{@b.format modifier}" unless modifier.nil?
312
- yield @b if block_given?
313
- self
314
- end
315
- def type(archive_type)
316
- @b.append " -t#{@b.format archive_type}"
317
- yield @b if block_given?
318
- self
319
- end
320
- def exclude(file_ref, recurse_type=nil)
321
- @b.append ' -x'
322
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
323
- @b.append "#{@b.format file_ref}"
324
- yield @b if block_given?
325
- self
326
- end
327
- end
328
- class Test < CommandBase
329
- def initialize(underlying_builder, archive, files)
330
- super underlying_builder
331
- @b.append " t #{@b.format archive} #{@b.format files}"
332
- end
333
- def ai
334
- @b.append ' -ai'
335
- yield @b if block_given?
336
- self
337
- end
338
- def an
339
- @b.append ' -an'
340
- yield @b if block_given?
341
- self
342
- end
343
- def ax
344
- @b.append ' -ax'
345
- yield @b if block_given?
346
- self
347
- end
348
- def include(file_ref, recurse_type=nil)
349
- @b.append ' -i'
350
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
351
- @b.append "#{@b.format file_ref}"
352
- yield @b if block_given?
353
- self
354
- end
355
- def password(password)
356
- @b.append " -p#{@b.format_password password}"
357
- yield @b if block_given?
358
- self
359
- end
360
- def recursive(modifier=nil)
361
- @b.append ' -r'
362
- @b.append "#{@b.format modifier}" unless modifier.nil?
363
- yield @b if block_given?
364
- self
365
- end
366
- def exclude(file_ref, recurse_type=nil)
367
- @b.append ' -x'
368
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
369
- @b.append "#{@b.format file_ref}"
370
- yield @b if block_given?
371
- self
372
- end
373
- end
374
- class Update < CommandBase
375
- def initialize(underlying_builder, archive, files)
376
- super underlying_builder
377
- @b.append " u #{@b.format archive} #{@b.format files}"
378
- end
379
- def include(file_ref, recurse_type=nil)
380
- @b.append ' -i'
381
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
382
- @b.append "#{@b.format file_ref}"
383
- yield @b if block_given?
384
- self
385
- end
386
- def set_compression_method(method_parameters)
387
- @b.append " -m#{@b.format method_parameters}"
388
- yield @b if block_given?
389
- self
390
- end
391
- def password(password)
392
- @b.append " -p#{@b.format_password password}"
393
- yield @b if block_given?
394
- self
395
- end
396
- def recursive(modifier=nil)
397
- @b.append ' -r'
398
- @b.append "#{@b.format modifier}" unless modifier.nil?
399
- yield @b if block_given?
400
- self
401
- end
402
- def create_sfx_archive(sfx_module=nil)
403
- @b.append ' -sfx'
404
- @b.append "#{@b.format sfx_module}" unless sfx_module.nil?
405
- yield @b if block_given?
406
- self
407
- end
408
- def read_data_from_stdin(file_name=nil)
409
- @b.append ' -si'
410
- @b.append "#{@b.format file_name}" unless file_name.nil?
411
- yield @b if block_given?
412
- self
413
- end
414
- def write_data_to_stdout
415
- @b.append ' -so'
416
- yield @b if block_given?
417
- self
418
- end
419
- def compress_files_open_for_writing
420
- @b.append ' -ssw'
421
- yield @b if block_given?
422
- self
423
- end
424
- def type(archive_type)
425
- @b.append " -t#{@b.format archive_type}"
426
- yield @b if block_given?
427
- self
428
- end
429
- def update_options(args)
430
- @b.append " -u#{@b.format args}"
431
- yield @b if block_given?
432
- self
433
- end
434
- def working_dir(dir_path=nil)
435
- @b.append ' -w'
436
- @b.append "#{@b.format dir_path}" unless dir_path.nil?
437
- yield @b if block_given?
438
- self
439
- end
440
- def exclude(file_ref, recurse_type=nil)
441
- @b.append ' -x'
442
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
443
- @b.append "#{@b.format file_ref}"
444
- yield @b if block_given?
445
- self
446
- end
447
- end
448
- class ExtractWithFullPaths < CommandBase
449
- def initialize(underlying_builder, archive, files=nil)
450
- super underlying_builder
451
- @b.append " x #{@b.format archive}"
452
- @b.append " #{@b.format files}" unless files.nil?
453
- end
454
- def ai
455
- @b.append ' -ai'
456
- yield @b if block_given?
457
- self
458
- end
459
- def an
460
- @b.append ' -an'
461
- yield @b if block_given?
462
- self
463
- end
464
- def ao
465
- @b.append ' -ao'
466
- yield @b if block_given?
467
- self
468
- end
469
- def ax
470
- @b.append ' -ax'
471
- yield @b if block_given?
472
- self
473
- end
474
- def include(file_ref, recurse_type=nil)
475
- @b.append ' -i'
476
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
477
- @b.append "#{@b.format file_ref}"
478
- yield @b if block_given?
479
- self
480
- end
481
- def output(dir_path)
482
- @b.append " -o#{@b.format dir_path}"
483
- yield @b if block_given?
484
- self
485
- end
486
- def password(password)
487
- @b.append " -p#{@b.format_password password}"
488
- yield @b if block_given?
489
- self
490
- end
491
- def recursive(modifier=nil)
492
- @b.append ' -r'
493
- @b.append "#{@b.format modifier}" unless modifier.nil?
494
- yield @b if block_given?
495
- self
496
- end
497
- def write_data_to_stdout
498
- @b.append ' -so'
499
- yield @b if block_given?
500
- self
501
- end
502
- def type(archive_type)
503
- @b.append " -t#{@b.format archive_type}"
504
- yield @b if block_given?
505
- self
506
- end
507
- def exclude(file_ref, recurse_type=nil)
508
- @b.append ' -x'
509
- @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
510
- @b.append "#{@b.format file_ref}"
511
- yield @b if block_given?
512
- self
513
- end
514
- def y
515
- @b.append ' -y'
516
- yield @b if block_given?
517
- self
518
- end
519
- end
520
-
521
- end
522
- end
523
- end