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