fluent_command_builder 0.8.7 → 0.8.8
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_factory.rb +43 -0
- data/lib/fluent_command_builder/command_builders/appcfg_python.rb +3 -1
- data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +10 -8
- data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +10 -8
- data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +3 -1
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +10 -8
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +10 -8
- data/lib/fluent_command_builder/command_builders/bundle.rb +3 -1
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +10 -8
- data/lib/fluent_command_builder/command_builders/cucumber.rb +3 -1
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +10 -8
- data/lib/fluent_command_builder/command_builders/cucumber_12.rb +10 -8
- data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +3 -1
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +10 -8
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +10 -8
- data/lib/fluent_command_builder/command_builders/dotcover.rb +3 -1
- data/lib/fluent_command_builder/command_builders/dotcover_10.rb +10 -8
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +10 -8
- data/lib/fluent_command_builder/command_builders/dotcover_12.rb +10 -8
- data/lib/fluent_command_builder/command_builders/dotcover_20.rb +10 -8
- data/lib/fluent_command_builder/command_builders/fastlinkchecker.rb +3 -1
- data/lib/fluent_command_builder/command_builders/fastlinkchecker_21.rb +10 -8
- data/lib/fluent_command_builder/command_builders/installutil.rb +3 -1
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +10 -8
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +10 -8
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +10 -8
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +10 -8
- data/lib/fluent_command_builder/command_builders/msbuild.rb +3 -1
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +10 -8
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +10 -8
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +10 -8
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +10 -8
- data/lib/fluent_command_builder/command_builders/msdeploy.rb +3 -1
- data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +10 -8
- data/lib/fluent_command_builder/command_builders/mstest.rb +3 -1
- data/lib/fluent_command_builder/command_builders/mstest_100.rb +10 -8
- data/lib/fluent_command_builder/command_builders/mstest_80.rb +10 -8
- data/lib/fluent_command_builder/command_builders/mstest_90.rb +10 -8
- data/lib/fluent_command_builder/command_builders/netsh.rb +3 -1
- data/lib/fluent_command_builder/command_builders/netsh_61.rb +10 -8
- data/lib/fluent_command_builder/command_builders/nuget.rb +3 -1
- data/lib/fluent_command_builder/command_builders/nuget_20.rb +10 -8
- data/lib/fluent_command_builder/command_builders/nunit.rb +3 -1
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +10 -8
- data/lib/fluent_command_builder/command_builders/nunit_26.rb +10 -8
- data/lib/fluent_command_builder/command_builders/rake.rb +3 -1
- data/lib/fluent_command_builder/command_builders/rake_09.rb +10 -8
- data/lib/fluent_command_builder/command_builders/security_osx.rb +3 -1
- data/lib/fluent_command_builder/command_builders/security_osx_107.rb +10 -8
- data/lib/fluent_command_builder/command_builders/sevenzip.rb +3 -1
- data/lib/fluent_command_builder/command_builders/sevenzip_920.rb +10 -8
- data/lib/fluent_command_builder/command_builders/simian.rb +3 -1
- data/lib/fluent_command_builder/command_builders/simian_23.rb +10 -8
- data/lib/fluent_command_builder/command_builders/team_foundation.rb +3 -1
- data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +10 -8
- data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +3 -1
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +10 -8
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb +10 -8
- data/lib/fluent_command_builder/command_builders/xcodebuild.rb +3 -1
- data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +10 -8
- data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +10 -8
- data/lib/fluent_command_builder/command_formatters/hidden_password_formatter.rb +3 -3
- data/lib/fluent_command_builder/default_path_validator.rb +33 -0
- data/lib/fluent_command_builder/execution_context.rb +3 -1
- data/lib/fluent_command_builder/version.rb +11 -16
- data/lib/fluent_command_builder/version_validator.rb +12 -7
- metadata +8 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Generated code. Do not modify.
|
|
2
2
|
|
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
|
3
4
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
4
5
|
|
|
5
6
|
module FluentCommandBuilder
|
|
@@ -18,7 +19,8 @@ module FluentCommandBuilder
|
|
|
18
19
|
self.version_detector.version path
|
|
19
20
|
end
|
|
20
21
|
def self.create(&block)
|
|
21
|
-
|
|
22
|
+
f = CommandBuilderFactory.new NUnit
|
|
23
|
+
f.create &block
|
|
22
24
|
end
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
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__) + '/../default_path_validator')
|
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
6
6
|
|
|
7
7
|
module FluentCommandBuilder
|
|
@@ -11,20 +11,22 @@ module FluentCommandBuilder
|
|
|
11
11
|
module NUnit
|
|
12
12
|
module V25
|
|
13
13
|
VERSION = '2.5'
|
|
14
|
+
def self.exact_version
|
|
15
|
+
@exact_version ||= VERSION
|
|
16
|
+
end
|
|
17
|
+
def self.exact_version=(value)
|
|
18
|
+
@exact_version = value
|
|
19
|
+
end
|
|
14
20
|
def self.default_path
|
|
15
21
|
@default_path ||= nil
|
|
16
22
|
end
|
|
17
23
|
def self.default_path=(value)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
printer.print_warning %Q[Default Path for command "#{FluentCommandBuilder::NUnit::COMMAND_NAME}", version "#{VERSION}" does not exist. Path: #{value}] unless File.exist? value
|
|
21
|
-
rescue
|
|
22
|
-
printer.print_warning %Q[Failed to determine whether Default Path for command "#{FluentCommandBuilder::NUnit::COMMAND_NAME}", version "#{VERSION}" exists. An internal error occurred.]
|
|
23
|
-
end
|
|
24
|
+
validator = DefaultPathValidator.new value, FluentCommandBuilder::NUnit::COMMAND_NAME, exact_version
|
|
25
|
+
validator.validate
|
|
24
26
|
@default_path = value
|
|
25
27
|
end
|
|
26
28
|
def self.create(input_files=nil)
|
|
27
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::NUnit::COMMAND_NAME,
|
|
29
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::NUnit::COMMAND_NAME, self.exact_version
|
|
28
30
|
b.path = self.default_path
|
|
29
31
|
b.actual_version_lambda = lambda { |path| FluentCommandBuilder::NUnit.version path }
|
|
30
32
|
c = NUnit.new(b, input_files)
|
|
@@ -1,7 +1,7 @@
|
|
|
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__) + '/../default_path_validator')
|
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
6
6
|
|
|
7
7
|
module FluentCommandBuilder
|
|
@@ -11,20 +11,22 @@ module FluentCommandBuilder
|
|
|
11
11
|
module NUnit
|
|
12
12
|
module V26
|
|
13
13
|
VERSION = '2.6'
|
|
14
|
+
def self.exact_version
|
|
15
|
+
@exact_version ||= VERSION
|
|
16
|
+
end
|
|
17
|
+
def self.exact_version=(value)
|
|
18
|
+
@exact_version = value
|
|
19
|
+
end
|
|
14
20
|
def self.default_path
|
|
15
21
|
@default_path ||= nil
|
|
16
22
|
end
|
|
17
23
|
def self.default_path=(value)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
printer.print_warning %Q[Default Path for command "#{FluentCommandBuilder::NUnit::COMMAND_NAME}", version "#{VERSION}" does not exist. Path: #{value}] unless File.exist? value
|
|
21
|
-
rescue
|
|
22
|
-
printer.print_warning %Q[Failed to determine whether Default Path for command "#{FluentCommandBuilder::NUnit::COMMAND_NAME}", version "#{VERSION}" exists. An internal error occurred.]
|
|
23
|
-
end
|
|
24
|
+
validator = DefaultPathValidator.new value, FluentCommandBuilder::NUnit::COMMAND_NAME, exact_version
|
|
25
|
+
validator.validate
|
|
24
26
|
@default_path = value
|
|
25
27
|
end
|
|
26
28
|
def self.create(input_files=nil)
|
|
27
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::NUnit::COMMAND_NAME,
|
|
29
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::NUnit::COMMAND_NAME, self.exact_version
|
|
28
30
|
b.path = self.default_path
|
|
29
31
|
b.actual_version_lambda = lambda { |path| FluentCommandBuilder::NUnit.version path }
|
|
30
32
|
c = NUnit.new(b, input_files)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Generated code. Do not modify.
|
|
2
2
|
|
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
|
3
4
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
4
5
|
|
|
5
6
|
module FluentCommandBuilder
|
|
@@ -18,7 +19,8 @@ module FluentCommandBuilder
|
|
|
18
19
|
self.version_detector.version path
|
|
19
20
|
end
|
|
20
21
|
def self.create(&block)
|
|
21
|
-
|
|
22
|
+
f = CommandBuilderFactory.new Rake
|
|
23
|
+
f.create &block
|
|
22
24
|
end
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
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__) + '/../default_path_validator')
|
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
6
6
|
|
|
7
7
|
module FluentCommandBuilder
|
|
@@ -11,20 +11,22 @@ module FluentCommandBuilder
|
|
|
11
11
|
module Rake
|
|
12
12
|
module V09
|
|
13
13
|
VERSION = '0.9'
|
|
14
|
+
def self.exact_version
|
|
15
|
+
@exact_version ||= VERSION
|
|
16
|
+
end
|
|
17
|
+
def self.exact_version=(value)
|
|
18
|
+
@exact_version = value
|
|
19
|
+
end
|
|
14
20
|
def self.default_path
|
|
15
21
|
@default_path ||= nil
|
|
16
22
|
end
|
|
17
23
|
def self.default_path=(value)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
printer.print_warning %Q[Default Path for command "#{FluentCommandBuilder::Rake::COMMAND_NAME}", version "#{VERSION}" does not exist. Path: #{value}] unless File.exist? value
|
|
21
|
-
rescue
|
|
22
|
-
printer.print_warning %Q[Failed to determine whether Default Path for command "#{FluentCommandBuilder::Rake::COMMAND_NAME}", version "#{VERSION}" exists. An internal error occurred.]
|
|
23
|
-
end
|
|
24
|
+
validator = DefaultPathValidator.new value, FluentCommandBuilder::Rake::COMMAND_NAME, exact_version
|
|
25
|
+
validator.validate
|
|
24
26
|
@default_path = value
|
|
25
27
|
end
|
|
26
28
|
def self.create(task=nil)
|
|
27
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::Rake::COMMAND_NAME,
|
|
29
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::Rake::COMMAND_NAME, self.exact_version
|
|
28
30
|
b.path = self.default_path
|
|
29
31
|
b.actual_version_lambda = lambda { |path| FluentCommandBuilder::Rake.version path }
|
|
30
32
|
c = Rake.new(b, task)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Generated code. Do not modify.
|
|
2
2
|
|
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
|
3
4
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
4
5
|
|
|
5
6
|
module FluentCommandBuilder
|
|
@@ -18,7 +19,8 @@ module FluentCommandBuilder
|
|
|
18
19
|
self.version_detector.version path
|
|
19
20
|
end
|
|
20
21
|
def self.create(&block)
|
|
21
|
-
|
|
22
|
+
f = CommandBuilderFactory.new SecurityOSX
|
|
23
|
+
f.create &block
|
|
22
24
|
end
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
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__) + '/../default_path_validator')
|
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
6
6
|
|
|
7
7
|
module FluentCommandBuilder
|
|
@@ -11,20 +11,22 @@ module FluentCommandBuilder
|
|
|
11
11
|
module SecurityOSX
|
|
12
12
|
module V107
|
|
13
13
|
VERSION = '10.7'
|
|
14
|
+
def self.exact_version
|
|
15
|
+
@exact_version ||= VERSION
|
|
16
|
+
end
|
|
17
|
+
def self.exact_version=(value)
|
|
18
|
+
@exact_version = value
|
|
19
|
+
end
|
|
14
20
|
def self.default_path
|
|
15
21
|
@default_path ||= nil
|
|
16
22
|
end
|
|
17
23
|
def self.default_path=(value)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
printer.print_warning %Q[Default Path for command "#{FluentCommandBuilder::SecurityOSX::COMMAND_NAME}", version "#{VERSION}" does not exist. Path: #{value}] unless File.exist? value
|
|
21
|
-
rescue
|
|
22
|
-
printer.print_warning %Q[Failed to determine whether Default Path for command "#{FluentCommandBuilder::SecurityOSX::COMMAND_NAME}", version "#{VERSION}" exists. An internal error occurred.]
|
|
23
|
-
end
|
|
24
|
+
validator = DefaultPathValidator.new value, FluentCommandBuilder::SecurityOSX::COMMAND_NAME, exact_version
|
|
25
|
+
validator.validate
|
|
24
26
|
@default_path = value
|
|
25
27
|
end
|
|
26
28
|
def self.create
|
|
27
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::SecurityOSX::COMMAND_NAME,
|
|
29
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::SecurityOSX::COMMAND_NAME, self.exact_version
|
|
28
30
|
b.path = self.default_path
|
|
29
31
|
b.actual_version_lambda = lambda { |path| FluentCommandBuilder::SecurityOSX.version path }
|
|
30
32
|
c = SecurityOSX.new(b)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Generated code. Do not modify.
|
|
2
2
|
|
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
|
3
4
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
4
5
|
|
|
5
6
|
module FluentCommandBuilder
|
|
@@ -18,7 +19,8 @@ module FluentCommandBuilder
|
|
|
18
19
|
self.version_detector.version path
|
|
19
20
|
end
|
|
20
21
|
def self.create(&block)
|
|
21
|
-
|
|
22
|
+
f = CommandBuilderFactory.new SevenZip
|
|
23
|
+
f.create &block
|
|
22
24
|
end
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
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__) + '/../default_path_validator')
|
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
6
6
|
|
|
7
7
|
module FluentCommandBuilder
|
|
@@ -11,20 +11,22 @@ module FluentCommandBuilder
|
|
|
11
11
|
module SevenZip
|
|
12
12
|
module V920
|
|
13
13
|
VERSION = '9.20'
|
|
14
|
+
def self.exact_version
|
|
15
|
+
@exact_version ||= VERSION
|
|
16
|
+
end
|
|
17
|
+
def self.exact_version=(value)
|
|
18
|
+
@exact_version = value
|
|
19
|
+
end
|
|
14
20
|
def self.default_path
|
|
15
21
|
@default_path ||= nil
|
|
16
22
|
end
|
|
17
23
|
def self.default_path=(value)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
printer.print_warning %Q[Default Path for command "#{FluentCommandBuilder::SevenZip::COMMAND_NAME}", version "#{VERSION}" does not exist. Path: #{value}] unless File.exist? value
|
|
21
|
-
rescue
|
|
22
|
-
printer.print_warning %Q[Failed to determine whether Default Path for command "#{FluentCommandBuilder::SevenZip::COMMAND_NAME}", version "#{VERSION}" exists. An internal error occurred.]
|
|
23
|
-
end
|
|
24
|
+
validator = DefaultPathValidator.new value, FluentCommandBuilder::SevenZip::COMMAND_NAME, exact_version
|
|
25
|
+
validator.validate
|
|
24
26
|
@default_path = value
|
|
25
27
|
end
|
|
26
28
|
def self.create
|
|
27
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::SevenZip::COMMAND_NAME,
|
|
29
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::SevenZip::COMMAND_NAME, self.exact_version
|
|
28
30
|
b.path = self.default_path
|
|
29
31
|
b.actual_version_lambda = lambda { |path| FluentCommandBuilder::SevenZip.version path }
|
|
30
32
|
c = SevenZip.new(b)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Generated code. Do not modify.
|
|
2
2
|
|
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
|
3
4
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
4
5
|
|
|
5
6
|
module FluentCommandBuilder
|
|
@@ -18,7 +19,8 @@ module FluentCommandBuilder
|
|
|
18
19
|
self.version_detector.version path
|
|
19
20
|
end
|
|
20
21
|
def self.create(&block)
|
|
21
|
-
|
|
22
|
+
f = CommandBuilderFactory.new Simian
|
|
23
|
+
f.create &block
|
|
22
24
|
end
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
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__) + '/../default_path_validator')
|
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
6
6
|
|
|
7
7
|
module FluentCommandBuilder
|
|
@@ -11,20 +11,22 @@ module FluentCommandBuilder
|
|
|
11
11
|
module Simian
|
|
12
12
|
module V23
|
|
13
13
|
VERSION = '2.3'
|
|
14
|
+
def self.exact_version
|
|
15
|
+
@exact_version ||= VERSION
|
|
16
|
+
end
|
|
17
|
+
def self.exact_version=(value)
|
|
18
|
+
@exact_version = value
|
|
19
|
+
end
|
|
14
20
|
def self.default_path
|
|
15
21
|
@default_path ||= nil
|
|
16
22
|
end
|
|
17
23
|
def self.default_path=(value)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
printer.print_warning %Q[Default Path for command "#{FluentCommandBuilder::Simian::COMMAND_NAME}", version "#{VERSION}" does not exist. Path: #{value}] unless File.exist? value
|
|
21
|
-
rescue
|
|
22
|
-
printer.print_warning %Q[Failed to determine whether Default Path for command "#{FluentCommandBuilder::Simian::COMMAND_NAME}", version "#{VERSION}" exists. An internal error occurred.]
|
|
23
|
-
end
|
|
24
|
+
validator = DefaultPathValidator.new value, FluentCommandBuilder::Simian::COMMAND_NAME, exact_version
|
|
25
|
+
validator.validate
|
|
24
26
|
@default_path = value
|
|
25
27
|
end
|
|
26
28
|
def self.create
|
|
27
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::Simian::COMMAND_NAME,
|
|
29
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::Simian::COMMAND_NAME, self.exact_version
|
|
28
30
|
b.path = self.default_path
|
|
29
31
|
b.actual_version_lambda = lambda { |path| FluentCommandBuilder::Simian.version path }
|
|
30
32
|
c = Simian.new(b)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Generated code. Do not modify.
|
|
2
2
|
|
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
|
3
4
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
4
5
|
|
|
5
6
|
module FluentCommandBuilder
|
|
@@ -18,7 +19,8 @@ module FluentCommandBuilder
|
|
|
18
19
|
self.version_detector.version path
|
|
19
20
|
end
|
|
20
21
|
def self.create(&block)
|
|
21
|
-
|
|
22
|
+
f = CommandBuilderFactory.new TeamFoundation
|
|
23
|
+
f.create &block
|
|
22
24
|
end
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
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__) + '/../default_path_validator')
|
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
6
6
|
|
|
7
7
|
module FluentCommandBuilder
|
|
@@ -11,20 +11,22 @@ module FluentCommandBuilder
|
|
|
11
11
|
module TeamFoundation
|
|
12
12
|
module V100
|
|
13
13
|
VERSION = '10.0'
|
|
14
|
+
def self.exact_version
|
|
15
|
+
@exact_version ||= VERSION
|
|
16
|
+
end
|
|
17
|
+
def self.exact_version=(value)
|
|
18
|
+
@exact_version = value
|
|
19
|
+
end
|
|
14
20
|
def self.default_path
|
|
15
21
|
@default_path ||= nil
|
|
16
22
|
end
|
|
17
23
|
def self.default_path=(value)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
printer.print_warning %Q[Default Path for command "#{FluentCommandBuilder::TeamFoundation::COMMAND_NAME}", version "#{VERSION}" does not exist. Path: #{value}] unless File.exist? value
|
|
21
|
-
rescue
|
|
22
|
-
printer.print_warning %Q[Failed to determine whether Default Path for command "#{FluentCommandBuilder::TeamFoundation::COMMAND_NAME}", version "#{VERSION}" exists. An internal error occurred.]
|
|
23
|
-
end
|
|
24
|
+
validator = DefaultPathValidator.new value, FluentCommandBuilder::TeamFoundation::COMMAND_NAME, exact_version
|
|
25
|
+
validator.validate
|
|
24
26
|
@default_path = value
|
|
25
27
|
end
|
|
26
28
|
def self.create
|
|
27
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::TeamFoundation::COMMAND_NAME,
|
|
29
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::TeamFoundation::COMMAND_NAME, self.exact_version
|
|
28
30
|
b.path = self.default_path
|
|
29
31
|
b.actual_version_lambda = lambda { |path| FluentCommandBuilder::TeamFoundation.version path }
|
|
30
32
|
c = TeamFoundation.new(b)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Generated code. Do not modify.
|
|
2
2
|
|
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_factory')
|
|
3
4
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
4
5
|
|
|
5
6
|
module FluentCommandBuilder
|
|
@@ -18,7 +19,8 @@ module FluentCommandBuilder
|
|
|
18
19
|
self.version_detector.version path
|
|
19
20
|
end
|
|
20
21
|
def self.create(&block)
|
|
21
|
-
|
|
22
|
+
f = CommandBuilderFactory.new TeamFoundationTEE
|
|
23
|
+
f.create &block
|
|
22
24
|
end
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
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__) + '/../default_path_validator')
|
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
6
6
|
|
|
7
7
|
module FluentCommandBuilder
|
|
@@ -11,20 +11,22 @@ module FluentCommandBuilder
|
|
|
11
11
|
module TeamFoundationTEE
|
|
12
12
|
module V100
|
|
13
13
|
VERSION = '10.0'
|
|
14
|
+
def self.exact_version
|
|
15
|
+
@exact_version ||= VERSION
|
|
16
|
+
end
|
|
17
|
+
def self.exact_version=(value)
|
|
18
|
+
@exact_version = value
|
|
19
|
+
end
|
|
14
20
|
def self.default_path
|
|
15
21
|
@default_path ||= nil
|
|
16
22
|
end
|
|
17
23
|
def self.default_path=(value)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
printer.print_warning %Q[Default Path for command "#{FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME}", version "#{VERSION}" does not exist. Path: #{value}] unless File.exist? value
|
|
21
|
-
rescue
|
|
22
|
-
printer.print_warning %Q[Failed to determine whether Default Path for command "#{FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME}", version "#{VERSION}" exists. An internal error occurred.]
|
|
23
|
-
end
|
|
24
|
+
validator = DefaultPathValidator.new value, FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME, exact_version
|
|
25
|
+
validator.validate
|
|
24
26
|
@default_path = value
|
|
25
27
|
end
|
|
26
28
|
def self.create
|
|
27
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME,
|
|
29
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME, self.exact_version
|
|
28
30
|
b.path = self.default_path
|
|
29
31
|
b.actual_version_lambda = lambda { |path| FluentCommandBuilder::TeamFoundationTEE.version path }
|
|
30
32
|
c = TeamFoundationTEE.new(b)
|
|
@@ -1,7 +1,7 @@
|
|
|
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__) + '/../default_path_validator')
|
|
5
5
|
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
|
6
6
|
|
|
7
7
|
module FluentCommandBuilder
|
|
@@ -11,20 +11,22 @@ module FluentCommandBuilder
|
|
|
11
11
|
module TeamFoundationTEE
|
|
12
12
|
module V101
|
|
13
13
|
VERSION = '10.1'
|
|
14
|
+
def self.exact_version
|
|
15
|
+
@exact_version ||= VERSION
|
|
16
|
+
end
|
|
17
|
+
def self.exact_version=(value)
|
|
18
|
+
@exact_version = value
|
|
19
|
+
end
|
|
14
20
|
def self.default_path
|
|
15
21
|
@default_path ||= nil
|
|
16
22
|
end
|
|
17
23
|
def self.default_path=(value)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
printer.print_warning %Q[Default Path for command "#{FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME}", version "#{VERSION}" does not exist. Path: #{value}] unless File.exist? value
|
|
21
|
-
rescue
|
|
22
|
-
printer.print_warning %Q[Failed to determine whether Default Path for command "#{FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME}", version "#{VERSION}" exists. An internal error occurred.]
|
|
23
|
-
end
|
|
24
|
+
validator = DefaultPathValidator.new value, FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME, exact_version
|
|
25
|
+
validator.validate
|
|
24
26
|
@default_path = value
|
|
25
27
|
end
|
|
26
28
|
def self.create
|
|
27
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME,
|
|
29
|
+
b = UnderlyingBuilder.new FluentCommandBuilder::TeamFoundationTEE::COMMAND_NAME, self.exact_version
|
|
28
30
|
b.path = self.default_path
|
|
29
31
|
b.actual_version_lambda = lambda { |path| FluentCommandBuilder::TeamFoundationTEE.version path }
|
|
30
32
|
c = TeamFoundationTEE.new(b)
|