fluent_command_builder 0.8.11 → 0.8.12
Sign up to get free protection for your applications and to get access to all the features.
- 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 nunit_25(input_files=nil)
|
9
|
-
FluentCommandBuilder::NUnit::V25.create(input_files) { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module NUnit
|
12
9
|
module V25
|
13
10
|
VERSION = '2.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::NUnit::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::NUnit::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::NUnit.version_detector
|
13
|
+
def configure_nunit
|
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(input_files=nil)
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::NUnit::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::NUnit.version_detector
|
17
|
+
def nunit(input_files=nil)
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = NUnit.new(b, input_files)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def nunit(input_files=nil)
|
43
|
-
FluentCommandBuilder::NUnit::V25.create(input_files) { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class NUnit < CommandBase
|
46
24
|
def initialize(underlying_builder, input_files=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 nunit_26(input_files=nil)
|
9
|
-
FluentCommandBuilder::NUnit::V26.create(input_files) { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module NUnit
|
12
9
|
module V26
|
13
10
|
VERSION = '2.6'
|
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::NUnit::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::NUnit::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::NUnit.version_detector
|
13
|
+
def configure_nunit
|
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(input_files=nil)
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::NUnit::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::NUnit.version_detector
|
17
|
+
def nunit(input_files=nil)
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = NUnit.new(b, input_files)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def nunit(input_files=nil)
|
43
|
-
FluentCommandBuilder::NUnit::V26.create(input_files) { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class NUnit < CommandBase
|
46
24
|
def initialize(underlying_builder, input_files=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 rake(&block)
|
8
|
-
Rake.create &block
|
9
|
-
end
|
10
6
|
module Rake
|
11
7
|
COMMAND_NAME = 'rake'
|
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 Rake
|
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 rake_09(task=nil)
|
9
|
-
FluentCommandBuilder::Rake::V09.create(task) { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module Rake
|
12
9
|
module V09
|
13
10
|
VERSION = '0.9'
|
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::Rake::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::Rake::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::Rake.version_detector
|
13
|
+
def configure_rake
|
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(task=nil)
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::Rake::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::Rake.version_detector
|
17
|
+
def rake(task=nil)
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = Rake.new(b, task)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def rake(task=nil)
|
43
|
-
FluentCommandBuilder::Rake::V09.create(task) { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class Rake < CommandBase
|
46
24
|
def initialize(underlying_builder, task=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 security_osx(&block)
|
8
|
-
SecurityOSX.create &block
|
9
|
-
end
|
10
6
|
module SecurityOSX
|
11
7
|
COMMAND_NAME = 'security'
|
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 SecurityOSX
|
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 security_osx_107
|
9
|
-
FluentCommandBuilder::SecurityOSX::V107.create { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module SecurityOSX
|
12
9
|
module V107
|
13
10
|
VERSION = '10.7'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
def self.default_path
|
21
|
-
@default_path ||= nil
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::SecurityOSX::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::SecurityOSX.version_detector
|
13
|
+
def configure_security_osx
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
22
16
|
end
|
23
|
-
def
|
24
|
-
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
27
|
-
end
|
28
|
-
def self.version_validation_options
|
29
|
-
@version_validation_options ||= {}
|
30
|
-
yield @version_validation_options if block_given?
|
31
|
-
@version_validation_options
|
32
|
-
end
|
33
|
-
def self.create
|
34
|
-
b = UnderlyingBuilder.new FluentCommandBuilder::SecurityOSX::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::SecurityOSX.version_detector
|
17
|
+
def security_osx
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = SecurityOSX.new(b)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def security_osx
|
43
|
-
FluentCommandBuilder::SecurityOSX::V107.create { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class SecurityOSX < CommandBase
|
46
24
|
def initialize(underlying_builder)
|
47
25
|
super underlying_builder
|
@@ -58,6 +36,11 @@ module FluentCommandBuilder
|
|
58
36
|
def unlock_keychain
|
59
37
|
UnlockKeychain.new @b
|
60
38
|
end
|
39
|
+
def help
|
40
|
+
@b.append ' help'
|
41
|
+
yield @b if block_given?
|
42
|
+
self
|
43
|
+
end
|
61
44
|
end
|
62
45
|
class DeleteCertificate < CommandBase
|
63
46
|
def initialize(underlying_builder)
|
@@ -0,0 +1,187 @@
|
|
1
|
+
# Generated code. Do not modify.
|
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')
|
6
|
+
|
7
|
+
module FluentCommandBuilder
|
8
|
+
module SecurityOSX
|
9
|
+
module V108
|
10
|
+
VERSION = '10.8'
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::SecurityOSX::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::SecurityOSX.version_detector
|
13
|
+
def configure_security_osx
|
14
|
+
yield @@config
|
15
|
+
@@config.validate_path :warn
|
16
|
+
end
|
17
|
+
def security_osx
|
18
|
+
b = UnderlyingBuilder.new @@config
|
19
|
+
c = SecurityOSX.new(b)
|
20
|
+
yield b if block_given?
|
21
|
+
c
|
22
|
+
end
|
23
|
+
class SecurityOSX < CommandBase
|
24
|
+
def initialize(underlying_builder)
|
25
|
+
super underlying_builder
|
26
|
+
end
|
27
|
+
def delete_certificate
|
28
|
+
DeleteCertificate.new @b
|
29
|
+
end
|
30
|
+
def find_certificate
|
31
|
+
FindCertificate.new @b
|
32
|
+
end
|
33
|
+
def import(input_file)
|
34
|
+
Import.new @b, input_file
|
35
|
+
end
|
36
|
+
def unlock_keychain
|
37
|
+
UnlockKeychain.new @b
|
38
|
+
end
|
39
|
+
def help
|
40
|
+
@b.append ' help'
|
41
|
+
yield @b if block_given?
|
42
|
+
self
|
43
|
+
end
|
44
|
+
end
|
45
|
+
class DeleteCertificate < CommandBase
|
46
|
+
def initialize(underlying_builder)
|
47
|
+
super underlying_builder
|
48
|
+
@b.append ' delete-certificate'
|
49
|
+
end
|
50
|
+
def common_name(name)
|
51
|
+
@b.append " -c #{@b.format name}"
|
52
|
+
yield @b if block_given?
|
53
|
+
self
|
54
|
+
end
|
55
|
+
def hash(hash)
|
56
|
+
@b.append " -Z #{@b.format hash}"
|
57
|
+
yield @b if block_given?
|
58
|
+
self
|
59
|
+
end
|
60
|
+
def delete_user_trust_settings
|
61
|
+
@b.append ' -t'
|
62
|
+
yield @b if block_given?
|
63
|
+
self
|
64
|
+
end
|
65
|
+
def keychain(keychain)
|
66
|
+
@b.append " #{@b.format keychain}"
|
67
|
+
yield @b if block_given?
|
68
|
+
self
|
69
|
+
end
|
70
|
+
end
|
71
|
+
class FindCertificate < CommandBase
|
72
|
+
def initialize(underlying_builder)
|
73
|
+
super underlying_builder
|
74
|
+
@b.append ' find-certificate'
|
75
|
+
end
|
76
|
+
def all
|
77
|
+
@b.append ' -a'
|
78
|
+
yield @b if block_given?
|
79
|
+
self
|
80
|
+
end
|
81
|
+
def name(name)
|
82
|
+
@b.append " -c #{@b.format name}"
|
83
|
+
yield @b if block_given?
|
84
|
+
self
|
85
|
+
end
|
86
|
+
def email_address(email_address)
|
87
|
+
@b.append " -e #{@b.format email_address}"
|
88
|
+
yield @b if block_given?
|
89
|
+
self
|
90
|
+
end
|
91
|
+
def show_email_addresses
|
92
|
+
@b.append ' -m'
|
93
|
+
yield @b if block_given?
|
94
|
+
self
|
95
|
+
end
|
96
|
+
def output_pem_format
|
97
|
+
@b.append ' -p'
|
98
|
+
yield @b if block_given?
|
99
|
+
self
|
100
|
+
end
|
101
|
+
def print_sha1_hash
|
102
|
+
@b.append ' -Z'
|
103
|
+
yield @b if block_given?
|
104
|
+
self
|
105
|
+
end
|
106
|
+
def keychain(keychain)
|
107
|
+
@b.append " #{@b.format keychain}"
|
108
|
+
yield @b if block_given?
|
109
|
+
self
|
110
|
+
end
|
111
|
+
end
|
112
|
+
class Import < CommandBase
|
113
|
+
def initialize(underlying_builder, input_file)
|
114
|
+
super underlying_builder
|
115
|
+
@b.append " import #{@b.format input_file}"
|
116
|
+
end
|
117
|
+
def keychain(keychain)
|
118
|
+
@b.append " -k #{@b.format keychain}"
|
119
|
+
yield @b if block_given?
|
120
|
+
self
|
121
|
+
end
|
122
|
+
def type(type)
|
123
|
+
@b.append " -t #{@b.format type}"
|
124
|
+
yield @b if block_given?
|
125
|
+
self
|
126
|
+
end
|
127
|
+
def format(format)
|
128
|
+
@b.append " -f #{@b.format format}"
|
129
|
+
yield @b if block_given?
|
130
|
+
self
|
131
|
+
end
|
132
|
+
def wrapped
|
133
|
+
@b.append ' -w'
|
134
|
+
yield @b if block_given?
|
135
|
+
self
|
136
|
+
end
|
137
|
+
def not_extractable
|
138
|
+
@b.append ' -x'
|
139
|
+
yield @b if block_given?
|
140
|
+
self
|
141
|
+
end
|
142
|
+
def password(password)
|
143
|
+
@b.append " -P #{@b.format_password password}"
|
144
|
+
yield @b if block_given?
|
145
|
+
self
|
146
|
+
end
|
147
|
+
def attribute(name, value)
|
148
|
+
@b.append " -a #{@b.format name} #{@b.format value}"
|
149
|
+
yield @b if block_given?
|
150
|
+
self
|
151
|
+
end
|
152
|
+
def allow_without_warning
|
153
|
+
@b.append ' -A'
|
154
|
+
yield @b if block_given?
|
155
|
+
self
|
156
|
+
end
|
157
|
+
def allow_application(app_path)
|
158
|
+
@b.append " -T #{@b.format app_path}"
|
159
|
+
yield @b if block_given?
|
160
|
+
self
|
161
|
+
end
|
162
|
+
end
|
163
|
+
class UnlockKeychain < CommandBase
|
164
|
+
def initialize(underlying_builder)
|
165
|
+
super underlying_builder
|
166
|
+
@b.append ' unlock-keychain'
|
167
|
+
end
|
168
|
+
def no_password
|
169
|
+
@b.append ' -u'
|
170
|
+
yield @b if block_given?
|
171
|
+
self
|
172
|
+
end
|
173
|
+
def password(password)
|
174
|
+
@b.append " -p #{@b.format_password password}"
|
175
|
+
yield @b if block_given?
|
176
|
+
self
|
177
|
+
end
|
178
|
+
def keychain(keychain)
|
179
|
+
@b.append " #{@b.format keychain}"
|
180
|
+
yield @b if block_given?
|
181
|
+
self
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
@@ -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 sevenzip(&block)
|
8
|
-
SevenZip.create &block
|
9
|
-
end
|
10
6
|
module SevenZip
|
11
7
|
COMMAND_NAME = '7za'
|
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 SevenZip
|
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 sevenzip_920
|
9
|
-
FluentCommandBuilder::SevenZip::V920.create { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module SevenZip
|
12
9
|
module V920
|
13
10
|
VERSION = '9.20'
|
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::SevenZip::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::SevenZip::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::SevenZip.version_detector
|
13
|
+
def configure_sevenzip
|
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::SevenZip::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::SevenZip.version_detector
|
17
|
+
def sevenzip
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = SevenZip.new(b)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def sevenzip
|
43
|
-
FluentCommandBuilder::SevenZip::V920.create { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class SevenZip < 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 simian(&block)
|
8
|
-
Simian.create &block
|
9
|
-
end
|
10
6
|
module Simian
|
11
7
|
COMMAND_NAME = 'simian'
|
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 Simian
|
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 simian_23
|
9
|
-
FluentCommandBuilder::Simian::V23.create { |b| yield b if block_given? }
|
10
|
-
end
|
11
8
|
module Simian
|
12
9
|
module V23
|
13
10
|
VERSION = '2.3'
|
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::Simian::COMMAND_NAME, exact_version
|
25
|
-
validator.validate
|
26
|
-
@default_path = value
|
11
|
+
@@config = CommandBuilderConfig.new FluentCommandBuilder::Simian::COMMAND_NAME, VERSION
|
12
|
+
@@config.version_detector = FluentCommandBuilder::Simian.version_detector
|
13
|
+
def configure_simian
|
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::Simian::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::Simian.version_detector
|
17
|
+
def simian
|
18
|
+
b = UnderlyingBuilder.new @@config
|
38
19
|
c = Simian.new(b)
|
39
20
|
yield b if block_given?
|
40
21
|
c
|
41
22
|
end
|
42
|
-
def simian
|
43
|
-
FluentCommandBuilder::Simian::V23.create { |b| yield b if block_given? }
|
44
|
-
end
|
45
23
|
class Simian < 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 team_foundation(&block)
|
8
|
-
TeamFoundation.create &block
|
9
|
-
end
|
10
6
|
module TeamFoundation
|
11
7
|
COMMAND_NAME = 'tf'
|
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 TeamFoundation
|
23
|
-
f.create &block
|
24
|
-
end
|
25
17
|
end
|
26
18
|
end
|