fluent_command_builder 0.5.6 → 0.6.0
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/command_version_detector.rb +1 -0
- data/lib/fluent_command_builder/command_base.rb +20 -11
- data/lib/fluent_command_builder/command_builders/appcfg_python.rb +17 -0
- data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +1059 -1059
- data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +1055 -1055
- data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +17 -0
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +46 -46
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +46 -46
- data/lib/fluent_command_builder/command_builders/bundle.rb +17 -0
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +140 -140
- data/lib/fluent_command_builder/command_builders/cucumber.rb +17 -0
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +76 -76
- data/lib/fluent_command_builder/command_builders/cucumber_12.rb +78 -78
- data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +17 -0
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +91 -86
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +91 -86
- data/lib/fluent_command_builder/command_builders/dotcover.rb +17 -0
- data/lib/fluent_command_builder/command_builders/dotcover_10.rb +33 -33
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +133 -133
- data/lib/fluent_command_builder/command_builders/dotcover_12.rb +133 -133
- data/lib/fluent_command_builder/command_builders/dotcover_20.rb +137 -137
- data/lib/fluent_command_builder/command_builders/installutil.rb +17 -0
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +31 -31
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +33 -33
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +33 -33
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +36 -36
- data/lib/fluent_command_builder/command_builders/msbuild.rb +17 -0
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +43 -43
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +43 -43
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +59 -59
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +62 -62
- data/lib/fluent_command_builder/command_builders/msdeploy.rb +17 -0
- data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +177 -0
- data/lib/fluent_command_builder/command_builders/mstest.rb +17 -0
- data/lib/fluent_command_builder/command_builders/mstest_100.rb +127 -0
- data/lib/fluent_command_builder/command_builders/mstest_80.rb +107 -0
- data/lib/fluent_command_builder/command_builders/mstest_90.rb +112 -0
- data/lib/fluent_command_builder/command_builders/netsh.rb +17 -0
- data/lib/fluent_command_builder/command_builders/netsh_61.rb +408 -0
- data/lib/fluent_command_builder/command_builders/nunit.rb +17 -0
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +69 -64
- data/lib/fluent_command_builder/command_builders/nunit_26.rb +85 -80
- data/lib/fluent_command_builder/command_builders/rake.rb +17 -0
- data/lib/fluent_command_builder/command_builders/rake_09.rb +64 -64
- data/lib/fluent_command_builder/command_builders/security_osx.rb +17 -0
- data/lib/fluent_command_builder/command_builders/security_osx_107.rb +82 -82
- data/lib/fluent_command_builder/command_builders/sevenzip.rb +17 -0
- data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +243 -243
- data/lib/fluent_command_builder/command_builders/simian.rb +17 -0
- data/lib/fluent_command_builder/command_builders/simian_23.rb +63 -63
- data/lib/fluent_command_builder/command_builders/team_foundation.rb +17 -0
- data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +2155 -0
- data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +17 -0
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +1978 -0
- data/lib/fluent_command_builder/command_builders/xcodebuild.rb +17 -0
- data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +112 -112
- data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +132 -132
- data/lib/fluent_command_builder/{command_builder.rb → underlying_builder.rb} +2 -2
- data/lib/fluent_command_builder/util.rb +18 -0
- data/lib/fluent_command_builder/version_detectors/appcfg_python.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/aspnet_compiler.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/bundle.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/cucumber.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/dev_appserver_python.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/dotcover.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/installutil.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/lib/appengine_python_version_detector.rb +16 -0
- data/lib/fluent_command_builder/version_detectors/lib/path_finder.rb +43 -0
- data/lib/fluent_command_builder/version_detectors/lib/standard_version_detector.rb +14 -0
- data/lib/fluent_command_builder/version_detectors/msbuild.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/msdeploy.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/mstest.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/nuget.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/nunit.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/rake.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/security_osx.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/sevenzip.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/team_foundation.rb +9 -0
- data/lib/fluent_command_builder/version_detectors/xcodebuild.rb +9 -0
- data/lib/fluent_command_builder.rb +26 -7
- metadata +53 -12
- data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +0 -177
- data/lib/fluent_command_builder/command_builders/mstest_2005.rb +0 -107
- data/lib/fluent_command_builder/command_builders/mstest_2008.rb +0 -112
- data/lib/fluent_command_builder/command_builders/mstest_2010.rb +0 -127
- data/lib/fluent_command_builder/command_builders/netsh_2008.rb +0 -408
- data/lib/fluent_command_builder/command_builders/tf_2010.rb +0 -2155
- data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +0 -1978
|
@@ -1,178 +1,178 @@
|
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
|
2
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
3
3
|
|
|
4
4
|
module FluentCommandBuilder
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
def security_osx_107
|
|
6
|
+
FluentCommandBuilder::SecurityOSX::V107.create { |b| yield b if block_given? }
|
|
7
|
+
end
|
|
8
|
+
module SecurityOSX
|
|
9
|
+
module V107
|
|
10
|
+
def self.create
|
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::SecurityOSX::COMMAND_NAME
|
|
12
|
+
c = SecurityOSX.new(b)
|
|
13
|
+
yield b if block_given?
|
|
14
|
+
c
|
|
15
|
+
end
|
|
16
|
+
def security_osx
|
|
17
|
+
FluentCommandBuilder::SecurityOSX::V107.create { |b| yield b if block_given? }
|
|
18
|
+
end
|
|
19
|
+
class SecurityOSX < CommandBase
|
|
20
|
+
def initialize(underlying_builder)
|
|
21
|
+
super underlying_builder
|
|
11
22
|
end
|
|
12
23
|
def delete_certificate
|
|
13
|
-
DeleteCertificate.new
|
|
24
|
+
DeleteCertificate.new b
|
|
14
25
|
end
|
|
15
26
|
def find_certificate
|
|
16
|
-
FindCertificate.new
|
|
27
|
+
FindCertificate.new b
|
|
17
28
|
end
|
|
18
29
|
def import(input_file)
|
|
19
|
-
Import.new
|
|
30
|
+
Import.new b, input_file
|
|
20
31
|
end
|
|
21
32
|
def unlock_keychain
|
|
22
|
-
UnlockKeychain.new
|
|
33
|
+
UnlockKeychain.new b
|
|
23
34
|
end
|
|
24
35
|
end
|
|
25
36
|
class DeleteCertificate < CommandBase
|
|
26
|
-
def initialize(
|
|
27
|
-
super
|
|
28
|
-
|
|
37
|
+
def initialize(underlying_builder)
|
|
38
|
+
super underlying_builder
|
|
39
|
+
b.append ' delete-certificate'
|
|
29
40
|
end
|
|
30
41
|
def common_name(name)
|
|
31
|
-
|
|
32
|
-
yield
|
|
42
|
+
b.append " -c #{b.format name}"
|
|
43
|
+
yield b if block_given?
|
|
33
44
|
self
|
|
34
45
|
end
|
|
35
46
|
def hash(hash)
|
|
36
|
-
|
|
37
|
-
yield
|
|
47
|
+
b.append " -Z #{b.format hash}"
|
|
48
|
+
yield b if block_given?
|
|
38
49
|
self
|
|
39
50
|
end
|
|
40
51
|
def delete_user_trust_settings
|
|
41
|
-
|
|
42
|
-
yield
|
|
52
|
+
b.append ' -t'
|
|
53
|
+
yield b if block_given?
|
|
43
54
|
self
|
|
44
55
|
end
|
|
45
56
|
def keychain(keychain)
|
|
46
|
-
|
|
47
|
-
yield
|
|
57
|
+
b.append " #{b.format keychain}"
|
|
58
|
+
yield b if block_given?
|
|
48
59
|
self
|
|
49
60
|
end
|
|
50
61
|
end
|
|
51
62
|
class FindCertificate < CommandBase
|
|
52
|
-
def initialize(
|
|
53
|
-
super
|
|
54
|
-
|
|
63
|
+
def initialize(underlying_builder)
|
|
64
|
+
super underlying_builder
|
|
65
|
+
b.append ' find-certificate'
|
|
55
66
|
end
|
|
56
67
|
def all
|
|
57
|
-
|
|
58
|
-
yield
|
|
68
|
+
b.append ' -a'
|
|
69
|
+
yield b if block_given?
|
|
59
70
|
self
|
|
60
71
|
end
|
|
61
72
|
def name(name)
|
|
62
|
-
|
|
63
|
-
yield
|
|
73
|
+
b.append " -c #{b.format name}"
|
|
74
|
+
yield b if block_given?
|
|
64
75
|
self
|
|
65
76
|
end
|
|
66
77
|
def email_address(email_address)
|
|
67
|
-
|
|
68
|
-
yield
|
|
78
|
+
b.append " -e #{b.format email_address}"
|
|
79
|
+
yield b if block_given?
|
|
69
80
|
self
|
|
70
81
|
end
|
|
71
82
|
def show_email_addresses
|
|
72
|
-
|
|
73
|
-
yield
|
|
83
|
+
b.append ' -m'
|
|
84
|
+
yield b if block_given?
|
|
74
85
|
self
|
|
75
86
|
end
|
|
76
87
|
def output_pem_format
|
|
77
|
-
|
|
78
|
-
yield
|
|
88
|
+
b.append ' -p'
|
|
89
|
+
yield b if block_given?
|
|
79
90
|
self
|
|
80
91
|
end
|
|
81
92
|
def print_sha1_hash
|
|
82
|
-
|
|
83
|
-
yield
|
|
93
|
+
b.append ' -Z'
|
|
94
|
+
yield b if block_given?
|
|
84
95
|
self
|
|
85
96
|
end
|
|
86
97
|
def keychain(keychain)
|
|
87
|
-
|
|
88
|
-
yield
|
|
98
|
+
b.append " #{b.format keychain}"
|
|
99
|
+
yield b if block_given?
|
|
89
100
|
self
|
|
90
101
|
end
|
|
91
102
|
end
|
|
92
103
|
class Import < CommandBase
|
|
93
|
-
def initialize(
|
|
94
|
-
super
|
|
95
|
-
|
|
104
|
+
def initialize(underlying_builder, input_file)
|
|
105
|
+
super underlying_builder
|
|
106
|
+
b.append " import #{b.format input_file}"
|
|
96
107
|
end
|
|
97
108
|
def keychain(keychain)
|
|
98
|
-
|
|
99
|
-
yield
|
|
109
|
+
b.append " -k #{b.format keychain}"
|
|
110
|
+
yield b if block_given?
|
|
100
111
|
self
|
|
101
112
|
end
|
|
102
113
|
def type(type)
|
|
103
|
-
|
|
104
|
-
yield
|
|
114
|
+
b.append " -t #{b.format type}"
|
|
115
|
+
yield b if block_given?
|
|
105
116
|
self
|
|
106
117
|
end
|
|
107
118
|
def format(format)
|
|
108
|
-
|
|
109
|
-
yield
|
|
119
|
+
b.append " -f #{b.format format}"
|
|
120
|
+
yield b if block_given?
|
|
110
121
|
self
|
|
111
122
|
end
|
|
112
123
|
def wrapped
|
|
113
|
-
|
|
114
|
-
yield
|
|
124
|
+
b.append ' -w'
|
|
125
|
+
yield b if block_given?
|
|
115
126
|
self
|
|
116
127
|
end
|
|
117
128
|
def not_extractable
|
|
118
|
-
|
|
119
|
-
yield
|
|
129
|
+
b.append ' -x'
|
|
130
|
+
yield b if block_given?
|
|
120
131
|
self
|
|
121
132
|
end
|
|
122
133
|
def passphrase(passphrase)
|
|
123
|
-
|
|
124
|
-
yield
|
|
134
|
+
b.append " -P #{b.format passphrase}"
|
|
135
|
+
yield b if block_given?
|
|
125
136
|
self
|
|
126
137
|
end
|
|
127
138
|
def attribute(name, value)
|
|
128
|
-
|
|
129
|
-
yield
|
|
139
|
+
b.append " -a #{b.format name} #{b.format value}"
|
|
140
|
+
yield b if block_given?
|
|
130
141
|
self
|
|
131
142
|
end
|
|
132
143
|
def allow_without_warning
|
|
133
|
-
|
|
134
|
-
yield
|
|
144
|
+
b.append ' -A'
|
|
145
|
+
yield b if block_given?
|
|
135
146
|
self
|
|
136
147
|
end
|
|
137
148
|
def allow_application(app_path)
|
|
138
|
-
|
|
139
|
-
yield
|
|
149
|
+
b.append " -T #{b.format app_path}"
|
|
150
|
+
yield b if block_given?
|
|
140
151
|
self
|
|
141
152
|
end
|
|
142
153
|
end
|
|
143
154
|
class UnlockKeychain < CommandBase
|
|
144
|
-
def initialize(
|
|
145
|
-
super
|
|
146
|
-
|
|
155
|
+
def initialize(underlying_builder)
|
|
156
|
+
super underlying_builder
|
|
157
|
+
b.append ' unlock-keychain'
|
|
147
158
|
end
|
|
148
159
|
def no_password
|
|
149
|
-
|
|
150
|
-
yield
|
|
160
|
+
b.append ' -u'
|
|
161
|
+
yield b if block_given?
|
|
151
162
|
self
|
|
152
163
|
end
|
|
153
164
|
def password(password)
|
|
154
|
-
|
|
155
|
-
yield
|
|
165
|
+
b.append " -p #{b.format password}"
|
|
166
|
+
yield b if block_given?
|
|
156
167
|
self
|
|
157
168
|
end
|
|
158
169
|
def keychain(keychain)
|
|
159
|
-
|
|
160
|
-
yield
|
|
170
|
+
b.append " #{b.format keychain}"
|
|
171
|
+
yield b if block_given?
|
|
161
172
|
self
|
|
162
173
|
end
|
|
163
174
|
end
|
|
164
|
-
|
|
165
|
-
builder = CommandBuilder.new COMMAND_NAME
|
|
166
|
-
command = Security.new builder
|
|
167
|
-
yield builder if block_given?
|
|
168
|
-
command
|
|
169
|
-
end
|
|
175
|
+
|
|
170
176
|
end
|
|
171
177
|
end
|
|
172
|
-
|
|
173
|
-
builder = CommandBuilder.new Security::OSX107::COMMAND_NAME
|
|
174
|
-
command = Security::OSX107::Security.new builder
|
|
175
|
-
yield builder if block_given?
|
|
176
|
-
command
|
|
177
|
-
end
|
|
178
|
-
end
|
|
178
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../util')
|
|
3
|
+
|
|
4
|
+
module FluentCommandBuilder
|
|
5
|
+
def sevenzip(&block)
|
|
6
|
+
SevenZip.create &block
|
|
7
|
+
end
|
|
8
|
+
module SevenZip
|
|
9
|
+
COMMAND_NAME = '7za'
|
|
10
|
+
def self.create
|
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::SevenZip::COMMAND_NAME
|
|
12
|
+
c = version_module(SevenZip).create b
|
|
13
|
+
yield b if block_given?
|
|
14
|
+
c
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|