fluent_command_builder 0.8.18 → 0.9.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/fluent_command_builder.rb +2 -65
- data/lib/fluent_command_builder/command_builder.rb +2 -2
- data/lib/fluent_command_builder/command_builders/appcfg_python.rb +2 -1
- data/lib/fluent_command_builder/command_builders/appcfg_python_16.rb +5 -4
- data/lib/fluent_command_builder/command_builders/appcfg_python_17.rb +5 -4
- data/lib/fluent_command_builder/command_builders/aspnet_compiler.rb +2 -1
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +5 -4
- data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +5 -4
- data/lib/fluent_command_builder/command_builders/bundle.rb +2 -1
- data/lib/fluent_command_builder/command_builders/bundle_11.rb +5 -4
- data/lib/fluent_command_builder/command_builders/cucumber.rb +2 -1
- data/lib/fluent_command_builder/command_builders/cucumber_11.rb +5 -4
- data/lib/fluent_command_builder/command_builders/cucumber_12.rb +5 -4
- data/lib/fluent_command_builder/command_builders/dev_appserver_python.rb +2 -1
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_16.rb +5 -4
- data/lib/fluent_command_builder/command_builders/dev_appserver_python_17.rb +5 -4
- data/lib/fluent_command_builder/command_builders/dotcover.rb +2 -1
- data/lib/fluent_command_builder/command_builders/dotcover_10.rb +5 -4
- data/lib/fluent_command_builder/command_builders/dotcover_11.rb +5 -4
- data/lib/fluent_command_builder/command_builders/dotcover_12.rb +5 -4
- data/lib/fluent_command_builder/command_builders/dotcover_20.rb +5 -4
- data/lib/fluent_command_builder/command_builders/fastlinkchecker.rb +2 -1
- data/lib/fluent_command_builder/command_builders/fastlinkchecker_21.rb +5 -4
- data/lib/fluent_command_builder/command_builders/installutil.rb +2 -1
- data/lib/fluent_command_builder/command_builders/installutil_11.rb +5 -4
- data/lib/fluent_command_builder/command_builders/installutil_20.rb +5 -4
- data/lib/fluent_command_builder/command_builders/installutil_35.rb +5 -4
- data/lib/fluent_command_builder/command_builders/installutil_40.rb +5 -4
- data/lib/fluent_command_builder/command_builders/msbuild.rb +2 -1
- data/lib/fluent_command_builder/command_builders/msbuild_20.rb +5 -4
- data/lib/fluent_command_builder/command_builders/msbuild_30.rb +5 -4
- data/lib/fluent_command_builder/command_builders/msbuild_35.rb +5 -4
- data/lib/fluent_command_builder/command_builders/msbuild_40.rb +5 -4
- data/lib/fluent_command_builder/command_builders/msdeploy.rb +2 -1
- data/lib/fluent_command_builder/command_builders/msdeploy_71.rb +5 -4
- data/lib/fluent_command_builder/command_builders/mstest.rb +2 -1
- data/lib/fluent_command_builder/command_builders/mstest_100.rb +5 -4
- data/lib/fluent_command_builder/command_builders/mstest_80.rb +5 -4
- data/lib/fluent_command_builder/command_builders/mstest_90.rb +5 -4
- data/lib/fluent_command_builder/command_builders/netsh.rb +2 -1
- data/lib/fluent_command_builder/command_builders/netsh_61.rb +5 -4
- data/lib/fluent_command_builder/command_builders/nuget.rb +2 -1
- data/lib/fluent_command_builder/command_builders/nuget_20.rb +5 -4
- data/lib/fluent_command_builder/command_builders/nunit.rb +2 -1
- data/lib/fluent_command_builder/command_builders/nunit_25.rb +5 -4
- data/lib/fluent_command_builder/command_builders/nunit_26.rb +5 -4
- data/lib/fluent_command_builder/command_builders/rake.rb +2 -1
- data/lib/fluent_command_builder/command_builders/rake_09.rb +5 -4
- data/lib/fluent_command_builder/command_builders/security_osx.rb +2 -1
- data/lib/fluent_command_builder/command_builders/security_osx_107.rb +5 -4
- data/lib/fluent_command_builder/command_builders/security_osx_108.rb +5 -4
- data/lib/fluent_command_builder/command_builders/sevenzip.rb +2 -1
- data/lib/fluent_command_builder/command_builders/sevenzip_920.rb +5 -4
- data/lib/fluent_command_builder/command_builders/simian.rb +2 -1
- data/lib/fluent_command_builder/command_builders/simian_23.rb +5 -4
- data/lib/fluent_command_builder/command_builders/team_foundation.rb +2 -1
- data/lib/fluent_command_builder/command_builders/team_foundation_100.rb +5 -4
- data/lib/fluent_command_builder/command_builders/team_foundation_tee.rb +2 -1
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb +5 -4
- data/lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb +5 -4
- data/lib/fluent_command_builder/command_builders/xcodebuild.rb +2 -1
- data/lib/fluent_command_builder/command_builders/xcodebuild_43.rb +5 -4
- data/lib/fluent_command_builder/command_builders/xcodebuild_44.rb +5 -4
- data/lib/fluent_command_builder/command_builders/xcodebuild_45.rb +331 -0
- data/lib/fluent_command_builder/execution_context.rb +2 -4
- data/lib/fluent_command_builder/{argument_formatter.rb → internal/argument_formatter.rb} +8 -6
- data/lib/fluent_command_builder/{command_base.rb → internal/command_base.rb} +0 -0
- data/lib/fluent_command_builder/internal/command_builder_config.rb +57 -0
- data/lib/fluent_command_builder/{path_finder.rb → internal/path_finder.rb} +19 -19
- data/lib/fluent_command_builder/{path_finders → internal/path_finders}/unix_path_finder.rb +12 -12
- data/lib/fluent_command_builder/{path_finders → internal/path_finders}/windows_path_finder.rb +13 -13
- data/lib/fluent_command_builder/internal/path_validator.rb +54 -0
- data/lib/fluent_command_builder/{printer.rb → internal/printer.rb} +5 -5
- data/lib/fluent_command_builder/{underlying_builder.rb → internal/underlying_builder.rb} +12 -6
- data/lib/fluent_command_builder/{version.rb → internal/version.rb} +12 -17
- data/lib/fluent_command_builder/internal/version_detectors.rb +1 -0
- data/lib/fluent_command_builder/{version_detectors → internal/version_detectors}/appengine_python_version_detector.rb +1 -0
- data/lib/fluent_command_builder/{version_detectors → internal/version_detectors}/default_version_detector.rb +1 -0
- data/lib/fluent_command_builder/{version_detectors → internal/version_detectors}/osx_version_detector.rb +0 -0
- data/lib/fluent_command_builder/{version_detectors → internal/version_detectors}/standard_version_detector.rb +9 -6
- data/lib/fluent_command_builder/{version_detectors → internal/version_detectors}/windows_version_detector.rb +0 -0
- data/lib/fluent_command_builder/{version_validator.rb → internal/version_validator.rb} +26 -23
- data/lib/fluent_command_builder/password_formatter.rb +22 -0
- metadata +25 -24
- data/lib/fluent_command_builder/command_builder_config.rb +0 -51
- data/lib/fluent_command_builder/command_formatters/hidden_password_formatter.rb +0 -17
- data/lib/fluent_command_builder/command_formatters/null_formatter.rb +0 -9
- data/lib/fluent_command_builder/path_validator.rb +0 -27
@@ -1,6 +1,7 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/version_detectors')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
4
5
|
|
5
6
|
module FluentCommandBuilder
|
6
7
|
module SecurityOSX
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
|
-
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
8
|
module SecurityOSX
|
@@ -12,7 +12,8 @@ module FluentCommandBuilder
|
|
12
12
|
@@config.version_detector = FluentCommandBuilder::SecurityOSX.version_detector
|
13
13
|
def configure_security_osx
|
14
14
|
yield @@config
|
15
|
-
@@config.validate_path
|
15
|
+
@@config.validate_path
|
16
|
+
@@config.validate_version
|
16
17
|
end
|
17
18
|
def security_osx
|
18
19
|
b = UnderlyingBuilder.new @@config
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
|
-
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
8
|
module SecurityOSX
|
@@ -12,7 +12,8 @@ module FluentCommandBuilder
|
|
12
12
|
@@config.version_detector = FluentCommandBuilder::SecurityOSX.version_detector
|
13
13
|
def configure_security_osx
|
14
14
|
yield @@config
|
15
|
-
@@config.validate_path
|
15
|
+
@@config.validate_path
|
16
|
+
@@config.validate_version
|
16
17
|
end
|
17
18
|
def security_osx
|
18
19
|
b = UnderlyingBuilder.new @@config
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/version_detectors')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
4
5
|
|
5
6
|
module FluentCommandBuilder
|
6
7
|
module SevenZip
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
|
-
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
8
|
module SevenZip
|
@@ -12,7 +12,8 @@ module FluentCommandBuilder
|
|
12
12
|
@@config.version_detector = FluentCommandBuilder::SevenZip.version_detector
|
13
13
|
def configure_sevenzip
|
14
14
|
yield @@config
|
15
|
-
@@config.validate_path
|
15
|
+
@@config.validate_path
|
16
|
+
@@config.validate_version
|
16
17
|
end
|
17
18
|
def sevenzip
|
18
19
|
b = UnderlyingBuilder.new @@config
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/version_detectors')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
4
5
|
|
5
6
|
module FluentCommandBuilder
|
6
7
|
module Simian
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
|
-
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
8
|
module Simian
|
@@ -12,7 +12,8 @@ module FluentCommandBuilder
|
|
12
12
|
@@config.version_detector = FluentCommandBuilder::Simian.version_detector
|
13
13
|
def configure_simian
|
14
14
|
yield @@config
|
15
|
-
@@config.validate_path
|
15
|
+
@@config.validate_path
|
16
|
+
@@config.validate_version
|
16
17
|
end
|
17
18
|
def simian
|
18
19
|
b = UnderlyingBuilder.new @@config
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/version_detectors')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
4
5
|
|
5
6
|
module FluentCommandBuilder
|
6
7
|
module TeamFoundation
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
|
-
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
8
|
module TeamFoundation
|
@@ -12,7 +12,8 @@ module FluentCommandBuilder
|
|
12
12
|
@@config.version_detector = FluentCommandBuilder::TeamFoundation.version_detector
|
13
13
|
def configure_team_foundation
|
14
14
|
yield @@config
|
15
|
-
@@config.validate_path
|
15
|
+
@@config.validate_path
|
16
|
+
@@config.validate_version
|
16
17
|
end
|
17
18
|
def team_foundation
|
18
19
|
b = UnderlyingBuilder.new @@config
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/version_detectors')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
4
5
|
|
5
6
|
module FluentCommandBuilder
|
6
7
|
module TeamFoundationTEE
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
|
-
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
8
|
module TeamFoundationTEE
|
@@ -12,7 +12,8 @@ module FluentCommandBuilder
|
|
12
12
|
@@config.version_detector = FluentCommandBuilder::TeamFoundationTEE.version_detector
|
13
13
|
def configure_team_foundation_tee
|
14
14
|
yield @@config
|
15
|
-
@@config.validate_path
|
15
|
+
@@config.validate_path
|
16
|
+
@@config.validate_version
|
16
17
|
end
|
17
18
|
def team_foundation_tee
|
18
19
|
b = UnderlyingBuilder.new @@config
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
|
-
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
8
|
module TeamFoundationTEE
|
@@ -12,7 +12,8 @@ module FluentCommandBuilder
|
|
12
12
|
@@config.version_detector = FluentCommandBuilder::TeamFoundationTEE.version_detector
|
13
13
|
def configure_team_foundation_tee
|
14
14
|
yield @@config
|
15
|
-
@@config.validate_path
|
15
|
+
@@config.validate_path
|
16
|
+
@@config.validate_version
|
16
17
|
end
|
17
18
|
def team_foundation_tee
|
18
19
|
b = UnderlyingBuilder.new @@config
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/version_detectors')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
4
5
|
|
5
6
|
module FluentCommandBuilder
|
6
7
|
module XCodeBuild
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
|
-
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
8
|
module XCodeBuild
|
@@ -12,7 +12,8 @@ module FluentCommandBuilder
|
|
12
12
|
@@config.version_detector = FluentCommandBuilder::XCodeBuild.version_detector
|
13
13
|
def configure_xcodebuild
|
14
14
|
yield @@config
|
15
|
-
@@config.validate_path
|
15
|
+
@@config.validate_path
|
16
|
+
@@config.validate_version
|
16
17
|
end
|
17
18
|
def xcodebuild
|
18
19
|
b = UnderlyingBuilder.new @@config
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Generated code. Do not modify.
|
2
2
|
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../command_builder_config')
|
5
|
-
require File.expand_path(File.dirname(__FILE__) + '/../underlying_builder')
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
6
6
|
|
7
7
|
module FluentCommandBuilder
|
8
8
|
module XCodeBuild
|
@@ -12,7 +12,8 @@ module FluentCommandBuilder
|
|
12
12
|
@@config.version_detector = FluentCommandBuilder::XCodeBuild.version_detector
|
13
13
|
def configure_xcodebuild
|
14
14
|
yield @@config
|
15
|
-
@@config.validate_path
|
15
|
+
@@config.validate_path
|
16
|
+
@@config.validate_version
|
16
17
|
end
|
17
18
|
def xcodebuild
|
18
19
|
b = UnderlyingBuilder.new @@config
|
@@ -0,0 +1,331 @@
|
|
1
|
+
# Generated code. Do not modify.
|
2
|
+
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_base')
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/command_builder_config')
|
5
|
+
require File.expand_path(File.dirname(__FILE__) + '/../internal/underlying_builder')
|
6
|
+
|
7
|
+
module FluentCommandBuilder
|
8
|
+
module XCodeBuild
|
9
|
+
module V45
|
10
|
+
VERSION = '4.5'
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::XCodeBuild::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::XCodeBuild.version_detector
|
13
|
+
def configure_xcodebuild
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path
|
16
|
+
@@config.validate_version
|
17
|
+
end
|
18
|
+
def xcodebuild
|
19
|
+
b = UnderlyingBuilder.new @@config
|
20
|
+
c = XCodeBuild.new(b)
|
21
|
+
yield b if block_given?
|
22
|
+
c
|
23
|
+
end
|
24
|
+
class XCodeBuild < CommandBase
|
25
|
+
def initialize(underlying_builder)
|
26
|
+
super underlying_builder
|
27
|
+
end
|
28
|
+
def build_project(build_action=nil)
|
29
|
+
BuildProject.new @b, build_action
|
30
|
+
end
|
31
|
+
def build_project_scheme(build_action=nil)
|
32
|
+
BuildProjectScheme.new @b, build_action
|
33
|
+
end
|
34
|
+
def build_workspace(workspace_name, build_action=nil)
|
35
|
+
BuildWorkspace.new @b, workspace_name, build_action
|
36
|
+
end
|
37
|
+
def version
|
38
|
+
Version.new @b
|
39
|
+
end
|
40
|
+
def list
|
41
|
+
@b.append ' -list'
|
42
|
+
yield @b if block_given?
|
43
|
+
self
|
44
|
+
end
|
45
|
+
def list_project(project_name)
|
46
|
+
@b.append " -list -project #{@b.format project_name}"
|
47
|
+
yield @b if block_given?
|
48
|
+
self
|
49
|
+
end
|
50
|
+
def list_workspace(workspace_name)
|
51
|
+
@b.append " -list -workspace #{@b.format workspace_name}"
|
52
|
+
yield @b if block_given?
|
53
|
+
self
|
54
|
+
end
|
55
|
+
def find_executable(name)
|
56
|
+
@b.append " -find-executable #{@b.format name}"
|
57
|
+
yield @b if block_given?
|
58
|
+
self
|
59
|
+
end
|
60
|
+
def find_library(name)
|
61
|
+
@b.append " -find-library #{@b.format name}"
|
62
|
+
yield @b if block_given?
|
63
|
+
self
|
64
|
+
end
|
65
|
+
def help
|
66
|
+
@b.append ' -help'
|
67
|
+
yield @b if block_given?
|
68
|
+
self
|
69
|
+
end
|
70
|
+
def license
|
71
|
+
@b.append ' -license'
|
72
|
+
yield @b if block_given?
|
73
|
+
self
|
74
|
+
end
|
75
|
+
def show_sdks
|
76
|
+
@b.append ' -showsdks'
|
77
|
+
yield @b if block_given?
|
78
|
+
self
|
79
|
+
end
|
80
|
+
def usage
|
81
|
+
@b.append ' -usage'
|
82
|
+
yield @b if block_given?
|
83
|
+
self
|
84
|
+
end
|
85
|
+
end
|
86
|
+
class BuildProject < CommandBase
|
87
|
+
def initialize(underlying_builder, build_action=nil)
|
88
|
+
super underlying_builder
|
89
|
+
@b.append ' '
|
90
|
+
@b.append "#{@b.format build_action, ' '}" unless build_action.nil?
|
91
|
+
end
|
92
|
+
def all_targets
|
93
|
+
@b.append ' -alltargets'
|
94
|
+
yield @b if block_given?
|
95
|
+
self
|
96
|
+
end
|
97
|
+
def architecture(architecture)
|
98
|
+
@b.append " -arch #{@b.format architecture}"
|
99
|
+
yield @b if block_given?
|
100
|
+
self
|
101
|
+
end
|
102
|
+
def configuration(configuration_name)
|
103
|
+
@b.append " -configuration #{@b.format configuration_name}"
|
104
|
+
yield @b if block_given?
|
105
|
+
self
|
106
|
+
end
|
107
|
+
def dry_run
|
108
|
+
@b.append ' -dry-run'
|
109
|
+
yield @b if block_given?
|
110
|
+
self
|
111
|
+
end
|
112
|
+
def jobs(number)
|
113
|
+
@b.append " -jobs #{@b.format number}"
|
114
|
+
yield @b if block_given?
|
115
|
+
self
|
116
|
+
end
|
117
|
+
def parallelize_targets
|
118
|
+
@b.append ' -parallelizeTargets'
|
119
|
+
yield @b if block_given?
|
120
|
+
self
|
121
|
+
end
|
122
|
+
def project(project_name)
|
123
|
+
@b.append " -project #{@b.format project_name}"
|
124
|
+
yield @b if block_given?
|
125
|
+
self
|
126
|
+
end
|
127
|
+
def target(target_name)
|
128
|
+
@b.append " -target #{@b.format target_name}"
|
129
|
+
yield @b if block_given?
|
130
|
+
self
|
131
|
+
end
|
132
|
+
def sdk(sdk_name)
|
133
|
+
@b.append " -sdk #{@b.format sdk_name}"
|
134
|
+
yield @b if block_given?
|
135
|
+
self
|
136
|
+
end
|
137
|
+
def show_build_settings
|
138
|
+
@b.append ' -showBuildSettings'
|
139
|
+
yield @b if block_given?
|
140
|
+
self
|
141
|
+
end
|
142
|
+
def toolchain(name)
|
143
|
+
@b.append " -toolchain #{@b.format name}"
|
144
|
+
yield @b if block_given?
|
145
|
+
self
|
146
|
+
end
|
147
|
+
def verbose
|
148
|
+
@b.append ' -verbose'
|
149
|
+
yield @b if block_given?
|
150
|
+
self
|
151
|
+
end
|
152
|
+
def xcconfig(path)
|
153
|
+
@b.append " -xcconfig #{@b.format path}"
|
154
|
+
yield @b if block_given?
|
155
|
+
self
|
156
|
+
end
|
157
|
+
def setting(setting, value)
|
158
|
+
@b.append " #{@b.format setting}=#{@b.format value}"
|
159
|
+
yield @b if block_given?
|
160
|
+
self
|
161
|
+
end
|
162
|
+
def build_action(build_action)
|
163
|
+
@b.append " #{@b.format build_action, ' '}"
|
164
|
+
yield @b if block_given?
|
165
|
+
self
|
166
|
+
end
|
167
|
+
end
|
168
|
+
class BuildProjectScheme < CommandBase
|
169
|
+
def initialize(underlying_builder, build_action=nil)
|
170
|
+
super underlying_builder
|
171
|
+
@b.append ' '
|
172
|
+
@b.append "#{@b.format build_action, ' '}" unless build_action.nil?
|
173
|
+
end
|
174
|
+
def architecture(architecture)
|
175
|
+
@b.append " -arch #{@b.format architecture}"
|
176
|
+
yield @b if block_given?
|
177
|
+
self
|
178
|
+
end
|
179
|
+
def configuration(configuration_name)
|
180
|
+
@b.append " -configuration #{@b.format configuration_name}"
|
181
|
+
yield @b if block_given?
|
182
|
+
self
|
183
|
+
end
|
184
|
+
def dry_run
|
185
|
+
@b.append ' -dry-run'
|
186
|
+
yield @b if block_given?
|
187
|
+
self
|
188
|
+
end
|
189
|
+
def jobs(number)
|
190
|
+
@b.append " -jobs #{@b.format number}"
|
191
|
+
yield @b if block_given?
|
192
|
+
self
|
193
|
+
end
|
194
|
+
def parallelize_targets
|
195
|
+
@b.append ' -parallelizeTargets'
|
196
|
+
yield @b if block_given?
|
197
|
+
self
|
198
|
+
end
|
199
|
+
def scheme(scheme_name)
|
200
|
+
@b.append " -scheme #{@b.format scheme_name}"
|
201
|
+
yield @b if block_given?
|
202
|
+
self
|
203
|
+
end
|
204
|
+
def sdk(sdk_name)
|
205
|
+
@b.append " -sdk #{@b.format sdk_name}"
|
206
|
+
yield @b if block_given?
|
207
|
+
self
|
208
|
+
end
|
209
|
+
def show_build_settings
|
210
|
+
@b.append ' -showBuildSettings'
|
211
|
+
yield @b if block_given?
|
212
|
+
self
|
213
|
+
end
|
214
|
+
def toolchain(name)
|
215
|
+
@b.append " -toolchain #{@b.format name}"
|
216
|
+
yield @b if block_given?
|
217
|
+
self
|
218
|
+
end
|
219
|
+
def verbose
|
220
|
+
@b.append ' -verbose'
|
221
|
+
yield @b if block_given?
|
222
|
+
self
|
223
|
+
end
|
224
|
+
def xcconfig(path)
|
225
|
+
@b.append " -xcconfig #{@b.format path}"
|
226
|
+
yield @b if block_given?
|
227
|
+
self
|
228
|
+
end
|
229
|
+
def setting(setting, value)
|
230
|
+
@b.append " #{@b.format setting}=#{@b.format value}"
|
231
|
+
yield @b if block_given?
|
232
|
+
self
|
233
|
+
end
|
234
|
+
def build_action(build_action)
|
235
|
+
@b.append " #{@b.format build_action, ' '}"
|
236
|
+
yield @b if block_given?
|
237
|
+
self
|
238
|
+
end
|
239
|
+
end
|
240
|
+
class BuildWorkspace < CommandBase
|
241
|
+
def initialize(underlying_builder, workspace_name, build_action=nil)
|
242
|
+
super underlying_builder
|
243
|
+
@b.append " -workspace #{@b.format workspace_name}"
|
244
|
+
@b.append " #{@b.format build_action, ' '}" unless build_action.nil?
|
245
|
+
end
|
246
|
+
def architecture(architecture)
|
247
|
+
@b.append " -arch #{@b.format architecture}"
|
248
|
+
yield @b if block_given?
|
249
|
+
self
|
250
|
+
end
|
251
|
+
def configuration(configuration_name)
|
252
|
+
@b.append " -configuration #{@b.format configuration_name}"
|
253
|
+
yield @b if block_given?
|
254
|
+
self
|
255
|
+
end
|
256
|
+
def dry_run
|
257
|
+
@b.append ' -dry-run'
|
258
|
+
yield @b if block_given?
|
259
|
+
self
|
260
|
+
end
|
261
|
+
def jobs(number)
|
262
|
+
@b.append " -jobs #{@b.format number}"
|
263
|
+
yield @b if block_given?
|
264
|
+
self
|
265
|
+
end
|
266
|
+
def parallelize_targets
|
267
|
+
@b.append ' -parallelizeTargets'
|
268
|
+
yield @b if block_given?
|
269
|
+
self
|
270
|
+
end
|
271
|
+
def scheme(scheme_name)
|
272
|
+
@b.append " -scheme #{@b.format scheme_name}"
|
273
|
+
yield @b if block_given?
|
274
|
+
self
|
275
|
+
end
|
276
|
+
def sdk(sdk_name)
|
277
|
+
@b.append " -sdk #{@b.format sdk_name}"
|
278
|
+
yield @b if block_given?
|
279
|
+
self
|
280
|
+
end
|
281
|
+
def show_build_settings
|
282
|
+
@b.append ' -showBuildSettings'
|
283
|
+
yield @b if block_given?
|
284
|
+
self
|
285
|
+
end
|
286
|
+
def toolchain(name)
|
287
|
+
@b.append " -toolchain #{@b.format name}"
|
288
|
+
yield @b if block_given?
|
289
|
+
self
|
290
|
+
end
|
291
|
+
def verbose
|
292
|
+
@b.append ' -verbose'
|
293
|
+
yield @b if block_given?
|
294
|
+
self
|
295
|
+
end
|
296
|
+
def xcconfig(path)
|
297
|
+
@b.append " -xcconfig #{@b.format path}"
|
298
|
+
yield @b if block_given?
|
299
|
+
self
|
300
|
+
end
|
301
|
+
def setting(setting, value)
|
302
|
+
@b.append " #{@b.format setting}=#{@b.format value}"
|
303
|
+
yield @b if block_given?
|
304
|
+
self
|
305
|
+
end
|
306
|
+
def build_action(build_action)
|
307
|
+
@b.append " #{@b.format build_action, ' '}"
|
308
|
+
yield @b if block_given?
|
309
|
+
self
|
310
|
+
end
|
311
|
+
end
|
312
|
+
class Version < CommandBase
|
313
|
+
def initialize(underlying_builder)
|
314
|
+
super underlying_builder
|
315
|
+
@b.append ' -version'
|
316
|
+
end
|
317
|
+
def sdk(sdk_name)
|
318
|
+
@b.append " -sdk #{@b.format sdk_name}"
|
319
|
+
yield @b if block_given?
|
320
|
+
self
|
321
|
+
end
|
322
|
+
def info_item(info_item)
|
323
|
+
@b.append " #{@b.format info_item}"
|
324
|
+
yield @b if block_given?
|
325
|
+
self
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
end
|
330
|
+
end
|
331
|
+
end
|