fluent_command_builder 0.5.6 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,127 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
|
4
|
+
module FluentCommandBuilder
|
5
|
+
def mstest_100
|
6
|
+
FluentCommandBuilder::MSTest::V100.create { |b| yield b if block_given? }
|
7
|
+
end
|
8
|
+
module MSTest
|
9
|
+
module V100
|
10
|
+
def self.create
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::MSTest::COMMAND_NAME
|
12
|
+
c = MSTest.new(b)
|
13
|
+
yield b if block_given?
|
14
|
+
c
|
15
|
+
end
|
16
|
+
def mstest
|
17
|
+
FluentCommandBuilder::MSTest::V100.create { |b| yield b if block_given? }
|
18
|
+
end
|
19
|
+
class MSTest < CommandBase
|
20
|
+
def initialize(underlying_builder)
|
21
|
+
super underlying_builder
|
22
|
+
end
|
23
|
+
def test_container(file_name)
|
24
|
+
b.append " /testContainer:#{b.format file_name}"
|
25
|
+
yield b if block_given?
|
26
|
+
self
|
27
|
+
end
|
28
|
+
def test_metadata(file_name)
|
29
|
+
b.append " /testMetadata:#{b.format file_name}"
|
30
|
+
yield b if block_given?
|
31
|
+
self
|
32
|
+
end
|
33
|
+
def test_list(test_list_path)
|
34
|
+
b.append " /testList:#{b.format test_list_path}"
|
35
|
+
yield b if block_given?
|
36
|
+
self
|
37
|
+
end
|
38
|
+
def category(test_category_filter)
|
39
|
+
b.append " /category:#{b.format test_category_filter}"
|
40
|
+
yield b if block_given?
|
41
|
+
self
|
42
|
+
end
|
43
|
+
def test(test_name)
|
44
|
+
b.append " /test:#{b.format test_name}"
|
45
|
+
yield b if block_given?
|
46
|
+
self
|
47
|
+
end
|
48
|
+
def no_isolation
|
49
|
+
b.append ' /noIsolation'
|
50
|
+
yield b if block_given?
|
51
|
+
self
|
52
|
+
end
|
53
|
+
def test_settings(file_name)
|
54
|
+
b.append " /testSettings:#{b.format file_name}"
|
55
|
+
yield b if block_given?
|
56
|
+
self
|
57
|
+
end
|
58
|
+
def run_config(file_name)
|
59
|
+
b.append " /runConfig:#{b.format file_name}"
|
60
|
+
yield b if block_given?
|
61
|
+
self
|
62
|
+
end
|
63
|
+
def results_file(file_name)
|
64
|
+
b.append " /resultsFile:#{b.format file_name}"
|
65
|
+
yield b if block_given?
|
66
|
+
self
|
67
|
+
end
|
68
|
+
def unique
|
69
|
+
b.append ' /unique'
|
70
|
+
yield b if block_given?
|
71
|
+
self
|
72
|
+
end
|
73
|
+
def detail(property_id)
|
74
|
+
b.append " /detail:#{b.format property_id}"
|
75
|
+
yield b if block_given?
|
76
|
+
self
|
77
|
+
end
|
78
|
+
def help
|
79
|
+
b.append ' /help'
|
80
|
+
yield b if block_given?
|
81
|
+
self
|
82
|
+
end
|
83
|
+
def no_logo
|
84
|
+
b.append ' /noLogo'
|
85
|
+
yield b if block_given?
|
86
|
+
self
|
87
|
+
end
|
88
|
+
def use_std_err
|
89
|
+
b.append ' /useStdErr'
|
90
|
+
yield b if block_given?
|
91
|
+
self
|
92
|
+
end
|
93
|
+
def publish(server_name)
|
94
|
+
b.append " /publish:#{b.format server_name}"
|
95
|
+
yield b if block_given?
|
96
|
+
self
|
97
|
+
end
|
98
|
+
def publish_results_file(file_name)
|
99
|
+
b.append " /publishResultsFile:#{b.format file_name}"
|
100
|
+
yield b if block_given?
|
101
|
+
self
|
102
|
+
end
|
103
|
+
def publish_build(build_id)
|
104
|
+
b.append " /publishBuild:#{b.format build_id}"
|
105
|
+
yield b if block_given?
|
106
|
+
self
|
107
|
+
end
|
108
|
+
def team_project(team_project_name)
|
109
|
+
b.append " /teamProject:#{b.format team_project_name}"
|
110
|
+
yield b if block_given?
|
111
|
+
self
|
112
|
+
end
|
113
|
+
def platform(platform)
|
114
|
+
b.append " /platform:#{b.format platform}"
|
115
|
+
yield b if block_given?
|
116
|
+
self
|
117
|
+
end
|
118
|
+
def flavor(flavor)
|
119
|
+
b.append " /flavor:#{b.format flavor}"
|
120
|
+
yield b if block_given?
|
121
|
+
self
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
|
4
|
+
module FluentCommandBuilder
|
5
|
+
def mstest_80
|
6
|
+
FluentCommandBuilder::MSTest::V80.create { |b| yield b if block_given? }
|
7
|
+
end
|
8
|
+
module MSTest
|
9
|
+
module V80
|
10
|
+
def self.create
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::MSTest::COMMAND_NAME
|
12
|
+
c = MSTest.new(b)
|
13
|
+
yield b if block_given?
|
14
|
+
c
|
15
|
+
end
|
16
|
+
def mstest
|
17
|
+
FluentCommandBuilder::MSTest::V80.create { |b| yield b if block_given? }
|
18
|
+
end
|
19
|
+
class MSTest < CommandBase
|
20
|
+
def initialize(underlying_builder)
|
21
|
+
super underlying_builder
|
22
|
+
end
|
23
|
+
def test_container(file_name)
|
24
|
+
b.append " /testContainer:#{b.format file_name}"
|
25
|
+
yield b if block_given?
|
26
|
+
self
|
27
|
+
end
|
28
|
+
def test_metadata(file_name)
|
29
|
+
b.append " /testMetadata:#{b.format file_name}"
|
30
|
+
yield b if block_given?
|
31
|
+
self
|
32
|
+
end
|
33
|
+
def test_list(list_list_path)
|
34
|
+
b.append " /testList:#{b.format list_list_path}"
|
35
|
+
yield b if block_given?
|
36
|
+
self
|
37
|
+
end
|
38
|
+
def test(test_name)
|
39
|
+
b.append " /test:#{b.format test_name}"
|
40
|
+
yield b if block_given?
|
41
|
+
self
|
42
|
+
end
|
43
|
+
def run_config(file_name)
|
44
|
+
b.append " /runConfig:#{b.format file_name}"
|
45
|
+
yield b if block_given?
|
46
|
+
self
|
47
|
+
end
|
48
|
+
def results_file(file_name)
|
49
|
+
b.append " /resultsFile:#{b.format file_name}"
|
50
|
+
yield b if block_given?
|
51
|
+
self
|
52
|
+
end
|
53
|
+
def unique
|
54
|
+
b.append ' /unique'
|
55
|
+
yield b if block_given?
|
56
|
+
self
|
57
|
+
end
|
58
|
+
def detail(property_id)
|
59
|
+
b.append " /detail:#{b.format property_id}"
|
60
|
+
yield b if block_given?
|
61
|
+
self
|
62
|
+
end
|
63
|
+
def help
|
64
|
+
b.append ' /help'
|
65
|
+
yield b if block_given?
|
66
|
+
self
|
67
|
+
end
|
68
|
+
def no_logo
|
69
|
+
b.append ' /noLogo'
|
70
|
+
yield b if block_given?
|
71
|
+
self
|
72
|
+
end
|
73
|
+
def publish(server_name)
|
74
|
+
b.append " /publish:#{b.format server_name}"
|
75
|
+
yield b if block_given?
|
76
|
+
self
|
77
|
+
end
|
78
|
+
def publish_results_file(file_name)
|
79
|
+
b.append " /publishResultsFile:#{b.format file_name}"
|
80
|
+
yield b if block_given?
|
81
|
+
self
|
82
|
+
end
|
83
|
+
def publish_build(build_id)
|
84
|
+
b.append " /publishBuild:#{b.format build_id}"
|
85
|
+
yield b if block_given?
|
86
|
+
self
|
87
|
+
end
|
88
|
+
def team_project(team_project_name)
|
89
|
+
b.append " /teamProject:#{b.format team_project_name}"
|
90
|
+
yield b if block_given?
|
91
|
+
self
|
92
|
+
end
|
93
|
+
def platform(platform)
|
94
|
+
b.append " /platform:#{b.format platform}"
|
95
|
+
yield b if block_given?
|
96
|
+
self
|
97
|
+
end
|
98
|
+
def flavor(flavor)
|
99
|
+
b.append " /flavor:#{b.format flavor}"
|
100
|
+
yield b if block_given?
|
101
|
+
self
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
|
4
|
+
module FluentCommandBuilder
|
5
|
+
def mstest_90
|
6
|
+
FluentCommandBuilder::MSTest::V90.create { |b| yield b if block_given? }
|
7
|
+
end
|
8
|
+
module MSTest
|
9
|
+
module V90
|
10
|
+
def self.create
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::MSTest::COMMAND_NAME
|
12
|
+
c = MSTest.new(b)
|
13
|
+
yield b if block_given?
|
14
|
+
c
|
15
|
+
end
|
16
|
+
def mstest
|
17
|
+
FluentCommandBuilder::MSTest::V90.create { |b| yield b if block_given? }
|
18
|
+
end
|
19
|
+
class MSTest < CommandBase
|
20
|
+
def initialize(underlying_builder)
|
21
|
+
super underlying_builder
|
22
|
+
end
|
23
|
+
def test_container(file_name)
|
24
|
+
b.append " /testContainer:#{b.format file_name}"
|
25
|
+
yield b if block_given?
|
26
|
+
self
|
27
|
+
end
|
28
|
+
def test_metadata(file_name)
|
29
|
+
b.append " /testMetadata:#{b.format file_name}"
|
30
|
+
yield b if block_given?
|
31
|
+
self
|
32
|
+
end
|
33
|
+
def test_list(list_list_path)
|
34
|
+
b.append " /testList:#{b.format list_list_path}"
|
35
|
+
yield b if block_given?
|
36
|
+
self
|
37
|
+
end
|
38
|
+
def test(test_name)
|
39
|
+
b.append " /test:#{b.format test_name}"
|
40
|
+
yield b if block_given?
|
41
|
+
self
|
42
|
+
end
|
43
|
+
def no_isolation
|
44
|
+
b.append ' /noIsolation'
|
45
|
+
yield b if block_given?
|
46
|
+
self
|
47
|
+
end
|
48
|
+
def run_config(file_name)
|
49
|
+
b.append " /runConfig:#{b.format file_name}"
|
50
|
+
yield b if block_given?
|
51
|
+
self
|
52
|
+
end
|
53
|
+
def results_file(file_name)
|
54
|
+
b.append " /resultsFile:#{b.format file_name}"
|
55
|
+
yield b if block_given?
|
56
|
+
self
|
57
|
+
end
|
58
|
+
def unique
|
59
|
+
b.append ' /unique'
|
60
|
+
yield b if block_given?
|
61
|
+
self
|
62
|
+
end
|
63
|
+
def detail(property_id)
|
64
|
+
b.append " /detail:#{b.format property_id}"
|
65
|
+
yield b if block_given?
|
66
|
+
self
|
67
|
+
end
|
68
|
+
def help
|
69
|
+
b.append ' /help'
|
70
|
+
yield b if block_given?
|
71
|
+
self
|
72
|
+
end
|
73
|
+
def no_logo
|
74
|
+
b.append ' /noLogo'
|
75
|
+
yield b if block_given?
|
76
|
+
self
|
77
|
+
end
|
78
|
+
def publish(server_name)
|
79
|
+
b.append " /publish:#{b.format server_name}"
|
80
|
+
yield b if block_given?
|
81
|
+
self
|
82
|
+
end
|
83
|
+
def publish_results_file(file_name)
|
84
|
+
b.append " /publishResultsFile:#{b.format file_name}"
|
85
|
+
yield b if block_given?
|
86
|
+
self
|
87
|
+
end
|
88
|
+
def publish_build(build_id)
|
89
|
+
b.append " /publishBuild:#{b.format build_id}"
|
90
|
+
yield b if block_given?
|
91
|
+
self
|
92
|
+
end
|
93
|
+
def team_project(team_project_name)
|
94
|
+
b.append " /teamProject:#{b.format team_project_name}"
|
95
|
+
yield b if block_given?
|
96
|
+
self
|
97
|
+
end
|
98
|
+
def platform(platform)
|
99
|
+
b.append " /platform:#{b.format platform}"
|
100
|
+
yield b if block_given?
|
101
|
+
self
|
102
|
+
end
|
103
|
+
def flavor(flavor)
|
104
|
+
b.append " /flavor:#{b.format flavor}"
|
105
|
+
yield b if block_given?
|
106
|
+
self
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
end
|
111
|
+
end
|
112
|
+
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 netsh(&block)
|
6
|
+
Netsh.create &block
|
7
|
+
end
|
8
|
+
module Netsh
|
9
|
+
COMMAND_NAME = 'netsh'
|
10
|
+
def self.create
|
11
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::Netsh::COMMAND_NAME
|
12
|
+
c = version_module(Netsh).create b
|
13
|
+
yield b if block_given?
|
14
|
+
c
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|