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
|
@@ -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 simian(&block)
|
|
6
|
+
Simian.create &block
|
|
7
|
+
end
|
|
8
|
+
module Simian
|
|
9
|
+
COMMAND_NAME = 'simian'
|
|
10
|
+
def self.create
|
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::Simian::COMMAND_NAME
|
|
12
|
+
c = version_module(Simian).create b
|
|
13
|
+
yield b if block_given?
|
|
14
|
+
c
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -1,142 +1,142 @@
|
|
|
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
|
+
def simian_23
|
|
6
|
+
FluentCommandBuilder::Simian::V23.create { |b| yield b if block_given? }
|
|
7
|
+
end
|
|
5
8
|
module Simian
|
|
6
9
|
module V23
|
|
7
|
-
|
|
10
|
+
def self.create
|
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::Simian::COMMAND_NAME
|
|
12
|
+
c = Simian.new(b)
|
|
13
|
+
yield b if block_given?
|
|
14
|
+
c
|
|
15
|
+
end
|
|
16
|
+
def simian
|
|
17
|
+
FluentCommandBuilder::Simian::V23.create { |b| yield b if block_given? }
|
|
18
|
+
end
|
|
8
19
|
class Simian < CommandBase
|
|
9
|
-
def initialize(
|
|
10
|
-
super
|
|
20
|
+
def initialize(underlying_builder)
|
|
21
|
+
super underlying_builder
|
|
11
22
|
end
|
|
12
23
|
def formatter(formatter)
|
|
13
|
-
|
|
14
|
-
yield
|
|
24
|
+
b.append " -formatter=#{b.format formatter}"
|
|
25
|
+
yield b if block_given?
|
|
15
26
|
self
|
|
16
27
|
end
|
|
17
28
|
def threshold(threshold)
|
|
18
|
-
|
|
19
|
-
yield
|
|
29
|
+
b.append " -threshold=#{b.format threshold}"
|
|
30
|
+
yield b if block_given?
|
|
20
31
|
self
|
|
21
32
|
end
|
|
22
33
|
def language(language)
|
|
23
|
-
|
|
24
|
-
yield
|
|
34
|
+
b.append " -language=#{b.format language}"
|
|
35
|
+
yield b if block_given?
|
|
25
36
|
self
|
|
26
37
|
end
|
|
27
38
|
def default_language(language)
|
|
28
|
-
|
|
29
|
-
yield
|
|
39
|
+
b.append " -defaultLanguage=#{b.format language}"
|
|
40
|
+
yield b if block_given?
|
|
30
41
|
self
|
|
31
42
|
end
|
|
32
43
|
def fail_on_duplication(bool)
|
|
33
|
-
|
|
34
|
-
yield
|
|
44
|
+
b.append " -failOnDuplication=#{b.format bool}"
|
|
45
|
+
yield b if block_given?
|
|
35
46
|
self
|
|
36
47
|
end
|
|
37
48
|
def report_duplicate_text(bool)
|
|
38
|
-
|
|
39
|
-
yield
|
|
49
|
+
b.append " -reportDuplicateText=#{b.format bool}"
|
|
50
|
+
yield b if block_given?
|
|
40
51
|
self
|
|
41
52
|
end
|
|
42
53
|
def ignore_blocks(markers)
|
|
43
|
-
|
|
44
|
-
yield
|
|
54
|
+
b.append " -ignoreBlocks=#{b.format markers}"
|
|
55
|
+
yield b if block_given?
|
|
45
56
|
self
|
|
46
57
|
end
|
|
47
58
|
def ignore_curly_braces(bool)
|
|
48
|
-
|
|
49
|
-
yield
|
|
59
|
+
b.append " -ignoreCurlyBraces=#{b.format bool}"
|
|
60
|
+
yield b if block_given?
|
|
50
61
|
self
|
|
51
62
|
end
|
|
52
63
|
def ignore_identifiers(bool)
|
|
53
|
-
|
|
54
|
-
yield
|
|
64
|
+
b.append " -ignoreIdentifiers=#{b.format bool}"
|
|
65
|
+
yield b if block_given?
|
|
55
66
|
self
|
|
56
67
|
end
|
|
57
68
|
def ignore_identifier_case(bool)
|
|
58
|
-
|
|
59
|
-
yield
|
|
69
|
+
b.append " -ignoreIdentifierCase=#{b.format bool}"
|
|
70
|
+
yield b if block_given?
|
|
60
71
|
self
|
|
61
72
|
end
|
|
62
73
|
def ignore_regions(bool)
|
|
63
|
-
|
|
64
|
-
yield
|
|
74
|
+
b.append " -ignoreRegions=#{b.format bool}"
|
|
75
|
+
yield b if block_given?
|
|
65
76
|
self
|
|
66
77
|
end
|
|
67
78
|
def ignore_strings(bool)
|
|
68
|
-
|
|
69
|
-
yield
|
|
79
|
+
b.append " -ignoreStrings=#{b.format bool}"
|
|
80
|
+
yield b if block_given?
|
|
70
81
|
self
|
|
71
82
|
end
|
|
72
83
|
def ignore_string_case(bool)
|
|
73
|
-
|
|
74
|
-
yield
|
|
84
|
+
b.append " -ignoreStringCase=#{b.format bool}"
|
|
85
|
+
yield b if block_given?
|
|
75
86
|
self
|
|
76
87
|
end
|
|
77
88
|
def ignore_numbers(bool)
|
|
78
|
-
|
|
79
|
-
yield
|
|
89
|
+
b.append " -ignoreNumbers=#{b.format bool}"
|
|
90
|
+
yield b if block_given?
|
|
80
91
|
self
|
|
81
92
|
end
|
|
82
93
|
def ignore_characters(bool)
|
|
83
|
-
|
|
84
|
-
yield
|
|
94
|
+
b.append " -ignoreCharacters=#{b.format bool}"
|
|
95
|
+
yield b if block_given?
|
|
85
96
|
self
|
|
86
97
|
end
|
|
87
98
|
def ignore_character_case(bool)
|
|
88
|
-
|
|
89
|
-
yield
|
|
99
|
+
b.append " -ignoreCharacterCase=#{b.format bool}"
|
|
100
|
+
yield b if block_given?
|
|
90
101
|
self
|
|
91
102
|
end
|
|
92
103
|
def ignore_literals(bool)
|
|
93
|
-
|
|
94
|
-
yield
|
|
104
|
+
b.append " -ignoreLiterals=#{b.format bool}"
|
|
105
|
+
yield b if block_given?
|
|
95
106
|
self
|
|
96
107
|
end
|
|
97
108
|
def ignore_subtype_names(bool)
|
|
98
|
-
|
|
99
|
-
yield
|
|
109
|
+
b.append " -ignoreSubtypeNames=#{b.format bool}"
|
|
110
|
+
yield b if block_given?
|
|
100
111
|
self
|
|
101
112
|
end
|
|
102
113
|
def ignore_modifiers(bool)
|
|
103
|
-
|
|
104
|
-
yield
|
|
114
|
+
b.append " -ignoreModifiers=#{b.format bool}"
|
|
115
|
+
yield b if block_given?
|
|
105
116
|
self
|
|
106
117
|
end
|
|
107
118
|
def ignore_variable_names(bool)
|
|
108
|
-
|
|
109
|
-
yield
|
|
119
|
+
b.append " -ignoreVariableNames=#{b.format bool}"
|
|
120
|
+
yield b if block_given?
|
|
110
121
|
self
|
|
111
122
|
end
|
|
112
123
|
def balance_parentheses(bool)
|
|
113
|
-
|
|
114
|
-
yield
|
|
124
|
+
b.append " -balanceParentheses=#{b.format bool}"
|
|
125
|
+
yield b if block_given?
|
|
115
126
|
self
|
|
116
127
|
end
|
|
117
128
|
def balance_curly_braces(bool)
|
|
118
|
-
|
|
119
|
-
yield
|
|
129
|
+
b.append " -balanceCurlyBraces=#{b.format bool}"
|
|
130
|
+
yield b if block_given?
|
|
120
131
|
self
|
|
121
132
|
end
|
|
122
133
|
def balance_square_brackets(bool)
|
|
123
|
-
|
|
124
|
-
yield
|
|
134
|
+
b.append " -balanceSquareBrackets=#{b.format bool}"
|
|
135
|
+
yield b if block_given?
|
|
125
136
|
self
|
|
126
137
|
end
|
|
127
138
|
end
|
|
128
|
-
|
|
129
|
-
builder = CommandBuilder.new COMMAND_NAME
|
|
130
|
-
command = Simian.new builder
|
|
131
|
-
yield builder if block_given?
|
|
132
|
-
command
|
|
133
|
-
end
|
|
139
|
+
|
|
134
140
|
end
|
|
135
141
|
end
|
|
136
|
-
|
|
137
|
-
builder = CommandBuilder.new Simian::V23::COMMAND_NAME
|
|
138
|
-
command = Simian::V23::Simian.new builder
|
|
139
|
-
yield builder if block_given?
|
|
140
|
-
command
|
|
141
|
-
end
|
|
142
|
-
end
|
|
142
|
+
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 team_foundation(&block)
|
|
6
|
+
TeamFoundation.create &block
|
|
7
|
+
end
|
|
8
|
+
module TeamFoundation
|
|
9
|
+
COMMAND_NAME = 'tf'
|
|
10
|
+
def self.create
|
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::TeamFoundation::COMMAND_NAME
|
|
12
|
+
c = version_module(TeamFoundation).create b
|
|
13
|
+
yield b if block_given?
|
|
14
|
+
c
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|