fluent_command_builder 0.8.11 → 0.8.12
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_builder_config.rb +31 -0
- data/lib/fluent_command_builder/command_builders/appcfg_python.rb +0 -8
- data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +8 -30
- data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +8 -30
- data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +1 -9
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +8 -30
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +8 -30
- data/lib/fluent_command_builder/command_builders/bundle.rb +0 -8
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +8 -30
- data/lib/fluent_command_builder/command_builders/cucumber.rb +0 -8
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +8 -30
- data/lib/fluent_command_builder/command_builders/cucumber_12.rb +8 -30
- data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +0 -8
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +8 -30
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +8 -30
- data/lib/fluent_command_builder/command_builders/dotcover.rb +0 -8
- data/lib/fluent_command_builder/command_builders/dotcover_10.rb +8 -30
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +8 -30
- data/lib/fluent_command_builder/command_builders/dotcover_12.rb +8 -30
- data/lib/fluent_command_builder/command_builders/dotcover_20.rb +8 -30
- data/lib/fluent_command_builder/command_builders/fastlinkchecker.rb +0 -8
- data/lib/fluent_command_builder/command_builders/fastlinkchecker_21.rb +8 -30
- data/lib/fluent_command_builder/command_builders/installutil.rb +0 -8
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +8 -30
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +8 -30
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +8 -30
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +8 -30
- data/lib/fluent_command_builder/command_builders/msbuild.rb +0 -8
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +8 -30
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +8 -30
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +8 -30
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +8 -30
- data/lib/fluent_command_builder/command_builders/msdeploy.rb +0 -8
- data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +8 -30
- data/lib/fluent_command_builder/command_builders/mstest.rb +0 -8
- data/lib/fluent_command_builder/command_builders/mstest_100.rb +8 -30
- data/lib/fluent_command_builder/command_builders/mstest_80.rb +8 -30
- data/lib/fluent_command_builder/command_builders/mstest_90.rb +8 -30
- data/lib/fluent_command_builder/command_builders/netsh.rb +0 -8
- data/lib/fluent_command_builder/command_builders/netsh_61.rb +8 -30
- data/lib/fluent_command_builder/command_builders/nuget.rb +0 -8
- data/lib/fluent_command_builder/command_builders/nuget_20.rb +8 -30
- data/lib/fluent_command_builder/command_builders/nunit.rb +0 -8
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +8 -30
- data/lib/fluent_command_builder/command_builders/nunit_26.rb +8 -30
- data/lib/fluent_command_builder/command_builders/rake.rb +0 -8
- data/lib/fluent_command_builder/command_builders/rake_09.rb +8 -30
- data/lib/fluent_command_builder/command_builders/security_osx.rb +0 -8
- data/lib/fluent_command_builder/command_builders/security_osx_107.rb +13 -30
- data/lib/fluent_command_builder/command_builders/security_osx_108.rb +187 -0
- data/lib/fluent_command_builder/command_builders/sevenzip.rb +0 -8
- data/lib/fluent_command_builder/command_builders/sevenzip_920.rb +8 -30
- data/lib/fluent_command_builder/command_builders/simian.rb +0 -8
- data/lib/fluent_command_builder/command_builders/simian_23.rb +8 -30
- data/lib/fluent_command_builder/command_builders/team_foundation.rb +0 -8
- data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +8 -30
- data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +0 -8
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +8 -30
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb +8 -30
- data/lib/fluent_command_builder/command_builders/xcodebuild.rb +0 -8
- data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +8 -30
- data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +8 -30
- data/lib/fluent_command_builder/path_validator.rb +25 -12
- data/lib/fluent_command_builder/underlying_builder.rb +10 -19
- data/lib/fluent_command_builder/version_validator.rb +33 -21
- data/lib/fluent_command_builder.rb +5 -4
- metadata +8 -8
- data/lib/fluent_command_builder/command_builder_factory.rb +0 -43
- data/lib/fluent_command_builder/default_path_validator.rb +0 -33
@@ -1,47 +1,25 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
|
-
def msbuild_30(project_file=nil)
|
9
|
-
FluentCommandBuilder::MSBuild::V30.create(project_file) { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module MSBuild
|
12
9
|
module V30
|
13
10
|
VERSION = '3.0'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
def self.default_path
|
21
|
-
@default_path ||= nil
|
22
|
-
end
|
23
|
-
def self.default_path=(value)
|
24
|
-
validator = DefaultPathValidator.new value, FluentCommandBuilder::MSBuild::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::MSBuild::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::MSBuild.version_detector
|
13
|
+
def configure_msbuild
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
27
16
|
end
|
28
|
-
def
|
29
|
-
|
30
|
-
yield @version_validation_options if block_given?
|
31
|
-
@version_validation_options
|
32
|
-
end
|
33
|
-
def self.create(project_file=nil)
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::MSBuild::COMMAND_NAME, self.exact_version
|
35
|
-
b.path = self.default_path
|
36
|
-
b.version_validation_options = self.version_validation_options
|
37
|
-
b.version_detector = FluentCommandBuilder::MSBuild.version_detector
|
17
|
+
def msbuild(project_file=nil)
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = MSBuild.new(b, project_file)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def msbuild(project_file=nil)
|
43
|
-
FluentCommandBuilder::MSBuild::V30.create(project_file) { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class MSBuild < CommandBase
|
46
24
|
def initialize(underlying_builder, project_file=nil)
|
47
25
|
super underlying_builder
|
@@ -1,47 +1,25 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
|
-
def msbuild_35(project_file=nil)
|
9
|
-
FluentCommandBuilder::MSBuild::V35.create(project_file) { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module MSBuild
|
12
9
|
module V35
|
13
10
|
VERSION = '3.5'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
def self.default_path
|
21
|
-
@default_path ||= nil
|
22
|
-
end
|
23
|
-
def self.default_path=(value)
|
24
|
-
validator = DefaultPathValidator.new value, FluentCommandBuilder::MSBuild::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::MSBuild::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::MSBuild.version_detector
|
13
|
+
def configure_msbuild
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
27
16
|
end
|
28
|
-
def
|
29
|
-
|
30
|
-
yield @version_validation_options if block_given?
|
31
|
-
@version_validation_options
|
32
|
-
end
|
33
|
-
def self.create(project_file=nil)
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::MSBuild::COMMAND_NAME, self.exact_version
|
35
|
-
b.path = self.default_path
|
36
|
-
b.version_validation_options = self.version_validation_options
|
37
|
-
b.version_detector = FluentCommandBuilder::MSBuild.version_detector
|
17
|
+
def msbuild(project_file=nil)
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = MSBuild.new(b, project_file)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def msbuild(project_file=nil)
|
43
|
-
FluentCommandBuilder::MSBuild::V35.create(project_file) { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class MSBuild < CommandBase
|
46
24
|
def initialize(underlying_builder, project_file=nil)
|
47
25
|
super underlying_builder
|
@@ -1,47 +1,25 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
|
-
def msbuild_40(project_file=nil)
|
9
|
-
FluentCommandBuilder::MSBuild::V40.create(project_file) { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module MSBuild
|
12
9
|
module V40
|
13
10
|
VERSION = '4.0'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
def self.default_path
|
21
|
-
@default_path ||= nil
|
22
|
-
end
|
23
|
-
def self.default_path=(value)
|
24
|
-
validator = DefaultPathValidator.new value, FluentCommandBuilder::MSBuild::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::MSBuild::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::MSBuild.version_detector
|
13
|
+
def configure_msbuild
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
27
16
|
end
|
28
|
-
def
|
29
|
-
|
30
|
-
yield @version_validation_options if block_given?
|
31
|
-
@version_validation_options
|
32
|
-
end
|
33
|
-
def self.create(project_file=nil)
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::MSBuild::COMMAND_NAME, self.exact_version
|
35
|
-
b.path = self.default_path
|
36
|
-
b.version_validation_options = self.version_validation_options
|
37
|
-
b.version_detector = FluentCommandBuilder::MSBuild.version_detector
|
17
|
+
def msbuild(project_file=nil)
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = MSBuild.new(b, project_file)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def msbuild(project_file=nil)
|
43
|
-
FluentCommandBuilder::MSBuild::V40.create(project_file) { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class MSBuild < CommandBase
|
46
24
|
def initialize(underlying_builder, project_file=nil)
|
47
25
|
super underlying_builder
|
@@ -1,12 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
4
3
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
5
4
|
|
6
5
|
module FluentCommandBuilder
|
7
|
-
def msdeploy(&block)
|
8
|
-
MSDeploy.create &block
|
9
|
-
end
|
10
6
|
module MSDeploy
|
11
7
|
COMMAND_NAME = 'MSDeploy'
|
12
8
|
def self.version_detector
|
@@ -18,9 +14,5 @@ module FluentCommandBuilder
|
|
18
14
|
def self.version(path=nil)
|
19
15
|
self.version_detector.version path
|
20
16
|
end
|
21
|
-
def self.create(&block)
|
22
|
-
f = CommandBuilderFactory.new MSDeploy
|
23
|
-
f.create &block
|
24
|
-
end
|
25
17
|
end
|
26
18
|
end
|
@@ -1,47 +1,25 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
|
-
def msdeploy_71
|
9
|
-
FluentCommandBuilder::MSDeploy::V71.create { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module MSDeploy
|
12
9
|
module V71
|
13
10
|
VERSION = '7.1'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
def self.default_path
|
21
|
-
@default_path ||= nil
|
22
|
-
end
|
23
|
-
def self.default_path=(value)
|
24
|
-
validator = DefaultPathValidator.new value, FluentCommandBuilder::MSDeploy::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::MSDeploy::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::MSDeploy.version_detector
|
13
|
+
def configure_msdeploy
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
27
16
|
end
|
28
|
-
def
|
29
|
-
|
30
|
-
yield @version_validation_options if block_given?
|
31
|
-
@version_validation_options
|
32
|
-
end
|
33
|
-
def self.create
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::MSDeploy::COMMAND_NAME, self.exact_version
|
35
|
-
b.path = self.default_path
|
36
|
-
b.version_validation_options = self.version_validation_options
|
37
|
-
b.version_detector = FluentCommandBuilder::MSDeploy.version_detector
|
17
|
+
def msdeploy
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = MSDeploy.new(b)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def msdeploy
|
43
|
-
FluentCommandBuilder::MSDeploy::V71.create { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class MSDeploy < CommandBase
|
46
24
|
def initialize(underlying_builder)
|
47
25
|
super underlying_builder
|
@@ -1,12 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
4
3
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
5
4
|
|
6
5
|
module FluentCommandBuilder
|
7
|
-
def mstest(&block)
|
8
|
-
MSTest.create &block
|
9
|
-
end
|
10
6
|
module MSTest
|
11
7
|
COMMAND_NAME = 'MSTest'
|
12
8
|
def self.version_detector
|
@@ -18,9 +14,5 @@ module FluentCommandBuilder
|
|
18
14
|
def self.version(path=nil)
|
19
15
|
self.version_detector.version path
|
20
16
|
end
|
21
|
-
def self.create(&block)
|
22
|
-
f = CommandBuilderFactory.new MSTest
|
23
|
-
f.create &block
|
24
|
-
end
|
25
17
|
end
|
26
18
|
end
|
@@ -1,47 +1,25 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
|
-
def mstest_100
|
9
|
-
FluentCommandBuilder::MSTest::V100.create { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module MSTest
|
12
9
|
module V100
|
13
10
|
VERSION = '10.0'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
def self.default_path
|
21
|
-
@default_path ||= nil
|
22
|
-
end
|
23
|
-
def self.default_path=(value)
|
24
|
-
validator = DefaultPathValidator.new value, FluentCommandBuilder::MSTest::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::MSTest::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::MSTest.version_detector
|
13
|
+
def configure_mstest
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
27
16
|
end
|
28
|
-
def
|
29
|
-
|
30
|
-
yield @version_validation_options if block_given?
|
31
|
-
@version_validation_options
|
32
|
-
end
|
33
|
-
def self.create
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::MSTest::COMMAND_NAME, self.exact_version
|
35
|
-
b.path = self.default_path
|
36
|
-
b.version_validation_options = self.version_validation_options
|
37
|
-
b.version_detector = FluentCommandBuilder::MSTest.version_detector
|
17
|
+
def mstest
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = MSTest.new(b)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def mstest
|
43
|
-
FluentCommandBuilder::MSTest::V100.create { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class MSTest < CommandBase
|
46
24
|
def initialize(underlying_builder)
|
47
25
|
super underlying_builder
|
@@ -1,47 +1,25 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
|
-
def mstest_80
|
9
|
-
FluentCommandBuilder::MSTest::V80.create { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module MSTest
|
12
9
|
module V80
|
13
10
|
VERSION = '8.0'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
def self.default_path
|
21
|
-
@default_path ||= nil
|
22
|
-
end
|
23
|
-
def self.default_path=(value)
|
24
|
-
validator = DefaultPathValidator.new value, FluentCommandBuilder::MSTest::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::MSTest::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::MSTest.version_detector
|
13
|
+
def configure_mstest
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
27
16
|
end
|
28
|
-
def
|
29
|
-
|
30
|
-
yield @version_validation_options if block_given?
|
31
|
-
@version_validation_options
|
32
|
-
end
|
33
|
-
def self.create
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::MSTest::COMMAND_NAME, self.exact_version
|
35
|
-
b.path = self.default_path
|
36
|
-
b.version_validation_options = self.version_validation_options
|
37
|
-
b.version_detector = FluentCommandBuilder::MSTest.version_detector
|
17
|
+
def mstest
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = MSTest.new(b)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def mstest
|
43
|
-
FluentCommandBuilder::MSTest::V80.create { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class MSTest < CommandBase
|
46
24
|
def initialize(underlying_builder)
|
47
25
|
super underlying_builder
|
@@ -1,47 +1,25 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
|
-
def mstest_90
|
9
|
-
FluentCommandBuilder::MSTest::V90.create { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module MSTest
|
12
9
|
module V90
|
13
10
|
VERSION = '9.0'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
def self.default_path
|
21
|
-
@default_path ||= nil
|
22
|
-
end
|
23
|
-
def self.default_path=(value)
|
24
|
-
validator = DefaultPathValidator.new value, FluentCommandBuilder::MSTest::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::MSTest::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::MSTest.version_detector
|
13
|
+
def configure_mstest
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
27
16
|
end
|
28
|
-
def
|
29
|
-
|
30
|
-
yield @version_validation_options if block_given?
|
31
|
-
@version_validation_options
|
32
|
-
end
|
33
|
-
def self.create
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::MSTest::COMMAND_NAME, self.exact_version
|
35
|
-
b.path = self.default_path
|
36
|
-
b.version_validation_options = self.version_validation_options
|
37
|
-
b.version_detector = FluentCommandBuilder::MSTest.version_detector
|
17
|
+
def mstest
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = MSTest.new(b)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def mstest
|
43
|
-
FluentCommandBuilder::MSTest::V90.create { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class MSTest < CommandBase
|
46
24
|
def initialize(underlying_builder)
|
47
25
|
super underlying_builder
|
@@ -1,12 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
4
3
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
5
4
|
|
6
5
|
module FluentCommandBuilder
|
7
|
-
def netsh(&block)
|
8
|
-
Netsh.create &block
|
9
|
-
end
|
10
6
|
module Netsh
|
11
7
|
COMMAND_NAME = 'netsh'
|
12
8
|
def self.version_detector
|
@@ -18,9 +14,5 @@ module FluentCommandBuilder
|
|
18
14
|
def self.version(path=nil)
|
19
15
|
self.version_detector.version path
|
20
16
|
end
|
21
|
-
def self.create(&block)
|
22
|
-
f = CommandBuilderFactory.new Netsh
|
23
|
-
f.create &block
|
24
|
-
end
|
25
17
|
end
|
26
18
|
end
|
@@ -1,47 +1,25 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
|
-
def netsh_61
|
9
|
-
FluentCommandBuilder::Netsh::V61.create { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module Netsh
|
12
9
|
module V61
|
13
10
|
VERSION = '6.1'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
def self.default_path
|
21
|
-
@default_path ||= nil
|
22
|
-
end
|
23
|
-
def self.default_path=(value)
|
24
|
-
validator = DefaultPathValidator.new value, FluentCommandBuilder::Netsh::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::Netsh::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::Netsh.version_detector
|
13
|
+
def configure_netsh
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
27
16
|
end
|
28
|
-
def
|
29
|
-
|
30
|
-
yield @version_validation_options if block_given?
|
31
|
-
@version_validation_options
|
32
|
-
end
|
33
|
-
def self.create
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::Netsh::COMMAND_NAME, self.exact_version
|
35
|
-
b.path = self.default_path
|
36
|
-
b.version_validation_options = self.version_validation_options
|
37
|
-
b.version_detector = FluentCommandBuilder::Netsh.version_detector
|
17
|
+
def netsh
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = Netsh.new(b)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def netsh
|
43
|
-
FluentCommandBuilder::Netsh::V61.create { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class Netsh < CommandBase
|
46
24
|
def initialize(underlying_builder)
|
47
25
|
super underlying_builder
|
@@ -1,12 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
4
3
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
5
4
|
|
6
5
|
module FluentCommandBuilder
|
7
|
-
def nuget(&block)
|
8
|
-
NuGet.create &block
|
9
|
-
end
|
10
6
|
module NuGet
|
11
7
|
COMMAND_NAME = 'NuGet'
|
12
8
|
def self.version_detector
|
@@ -18,9 +14,5 @@ module FluentCommandBuilder
|
|
18
14
|
def self.version(path=nil)
|
19
15
|
self.version_detector.version path
|
20
16
|
end
|
21
|
-
def self.create(&block)
|
22
|
-
f = CommandBuilderFactory.new NuGet
|
23
|
-
f.create &block
|
24
|
-
end
|
25
17
|
end
|
26
18
|
end
|
@@ -1,47 +1,25 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
|
-
def nuget_20
|
9
|
-
FluentCommandBuilder::NuGet::V20.create { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module NuGet
|
12
9
|
module V20
|
13
10
|
VERSION = '2.0'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
def self.default_path
|
21
|
-
@default_path ||= nil
|
22
|
-
end
|
23
|
-
def self.default_path=(value)
|
24
|
-
validator = DefaultPathValidator.new value, FluentCommandBuilder::NuGet::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::NuGet::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::NuGet.version_detector
|
13
|
+
def configure_nuget
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
27
16
|
end
|
28
|
-
def
|
29
|
-
|
30
|
-
yield @version_validation_options if block_given?
|
31
|
-
@version_validation_options
|
32
|
-
end
|
33
|
-
def self.create
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::NuGet::COMMAND_NAME, self.exact_version
|
35
|
-
b.path = self.default_path
|
36
|
-
b.version_validation_options = self.version_validation_options
|
37
|
-
b.version_detector = FluentCommandBuilder::NuGet.version_detector
|
17
|
+
def nuget
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = NuGet.new(b)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def nuget
|
43
|
-
FluentCommandBuilder::NuGet::V20.create { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class NuGet < CommandBase
|
46
24
|
def initialize(underlying_builder)
|
47
25
|
super underlying_builder
|
@@ -1,12 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
4
3
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
5
4
|
|
6
5
|
module FluentCommandBuilder
|
7
|
-
def nunit(&block)
|
8
|
-
NUnit.create &block
|
9
|
-
end
|
10
6
|
module NUnit
|
11
7
|
COMMAND_NAME = 'nunit-console'
|
12
8
|
def self.version_detector
|
@@ -18,9 +14,5 @@ module FluentCommandBuilder
|
|
18
14
|
def self.version(path=nil)
|
19
15
|
self.version_detector.version path
|
20
16
|
end
|
21
|
-
def self.create(&block)
|
22
|
-
f = CommandBuilderFactory.new NUnit
|
23
|
-
f.create &block
|
24
|
-
end
|
25
17
|
end
|
26
18
|
end
|