fluent_command_builder 0.4.1 → 0.5.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.
|
@@ -23,6 +23,7 @@ require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/comma
|
|
|
23
23
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/nunit_25.rb')
|
|
24
24
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/nunit_26.rb')
|
|
25
25
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/rake_09.rb')
|
|
26
|
+
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/security_osx_107.rb')
|
|
26
27
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/sevenzip_92.rb')
|
|
27
28
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/simian_23.rb')
|
|
28
29
|
require File.expand_path(File.dirname(__FILE__) + '/fluent_command_builder/command_builders/tf_2010.rb')
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_base')
|
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../command_builder')
|
|
3
|
+
|
|
4
|
+
module FluentCommandBuilder
|
|
5
|
+
module Security
|
|
6
|
+
module OSX107
|
|
7
|
+
COMMAND_NAME = 'security'
|
|
8
|
+
class Security < CommandBase
|
|
9
|
+
def initialize(builder)
|
|
10
|
+
super builder
|
|
11
|
+
end
|
|
12
|
+
def delete_certificate(keychain)
|
|
13
|
+
DeleteCertificate.new @builder, keychain
|
|
14
|
+
end
|
|
15
|
+
def import(input_file)
|
|
16
|
+
Import.new @builder, input_file
|
|
17
|
+
end
|
|
18
|
+
def unlock_keychain(keychain)
|
|
19
|
+
UnlockKeychain.new @builder, keychain
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
class DeleteCertificate < CommandBase
|
|
23
|
+
def initialize(builder, keychain)
|
|
24
|
+
super builder
|
|
25
|
+
@builder.append " delete-certificate #{@builder.format keychain}"
|
|
26
|
+
end
|
|
27
|
+
def common_name(name)
|
|
28
|
+
@builder.append " -c #{@builder.format name}"
|
|
29
|
+
yield @builder if block_given?
|
|
30
|
+
self
|
|
31
|
+
end
|
|
32
|
+
def hash(hash)
|
|
33
|
+
@builder.append " -Z #{@builder.format hash}"
|
|
34
|
+
yield @builder if block_given?
|
|
35
|
+
self
|
|
36
|
+
end
|
|
37
|
+
def delete_user_trust_settings
|
|
38
|
+
@builder.append ' -t'
|
|
39
|
+
yield @builder if block_given?
|
|
40
|
+
self
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
class Import < CommandBase
|
|
44
|
+
def initialize(builder, input_file)
|
|
45
|
+
super builder
|
|
46
|
+
@builder.append " import #{@builder.format input_file}"
|
|
47
|
+
end
|
|
48
|
+
def keychain(keychain)
|
|
49
|
+
@builder.append " -k #{@builder.format keychain}"
|
|
50
|
+
yield @builder if block_given?
|
|
51
|
+
self
|
|
52
|
+
end
|
|
53
|
+
def type(type)
|
|
54
|
+
@builder.append " -t #{@builder.format type}"
|
|
55
|
+
yield @builder if block_given?
|
|
56
|
+
self
|
|
57
|
+
end
|
|
58
|
+
def format(format)
|
|
59
|
+
@builder.append " -f #{@builder.format format}"
|
|
60
|
+
yield @builder if block_given?
|
|
61
|
+
self
|
|
62
|
+
end
|
|
63
|
+
def wrapped
|
|
64
|
+
@builder.append ' -w'
|
|
65
|
+
yield @builder if block_given?
|
|
66
|
+
self
|
|
67
|
+
end
|
|
68
|
+
def not_extractable
|
|
69
|
+
@builder.append ' -x'
|
|
70
|
+
yield @builder if block_given?
|
|
71
|
+
self
|
|
72
|
+
end
|
|
73
|
+
def passphrase(passphrase)
|
|
74
|
+
@builder.append " -P #{@builder.format passphrase}"
|
|
75
|
+
yield @builder if block_given?
|
|
76
|
+
self
|
|
77
|
+
end
|
|
78
|
+
def attribute(name, value)
|
|
79
|
+
@builder.append " -a #{@builder.format name} #{@builder.format value}"
|
|
80
|
+
yield @builder if block_given?
|
|
81
|
+
self
|
|
82
|
+
end
|
|
83
|
+
def allow_without_warning
|
|
84
|
+
@builder.append ' -A'
|
|
85
|
+
yield @builder if block_given?
|
|
86
|
+
self
|
|
87
|
+
end
|
|
88
|
+
def allow_application(app_path)
|
|
89
|
+
@builder.append " -T #{@builder.format app_path}"
|
|
90
|
+
yield @builder if block_given?
|
|
91
|
+
self
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
class UnlockKeychain < CommandBase
|
|
95
|
+
def initialize(builder, keychain)
|
|
96
|
+
super builder
|
|
97
|
+
@builder.append " unlock-keychain #{@builder.format keychain}"
|
|
98
|
+
end
|
|
99
|
+
def no_password
|
|
100
|
+
@builder.append ' -u'
|
|
101
|
+
yield @builder if block_given?
|
|
102
|
+
self
|
|
103
|
+
end
|
|
104
|
+
def password(password)
|
|
105
|
+
@builder.append " -p #{@builder.format password}"
|
|
106
|
+
yield @builder if block_given?
|
|
107
|
+
self
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
def security
|
|
111
|
+
builder = CommandBuilder.new COMMAND_NAME
|
|
112
|
+
command = Security.new builder
|
|
113
|
+
yield builder if block_given?
|
|
114
|
+
command
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
def security_osx_107
|
|
119
|
+
builder = CommandBuilder.new Security::OSX107::COMMAND_NAME
|
|
120
|
+
command = Security::OSX107::Security.new builder
|
|
121
|
+
yield builder if block_given?
|
|
122
|
+
command
|
|
123
|
+
end
|
|
124
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent_command_builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -13,7 +13,7 @@ date: 2012-06-04 00:00:00.000000000 Z
|
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70193259321920 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,7 +21,7 @@ dependencies:
|
|
|
21
21
|
version: '0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70193259321920
|
|
25
25
|
description: A command line builder with a fluent interface written in Ruby.
|
|
26
26
|
email: matthew-github@matthewriley.name
|
|
27
27
|
executables: []
|
|
@@ -55,6 +55,7 @@ files:
|
|
|
55
55
|
- lib/fluent_command_builder/command_builders/nunit_25.rb
|
|
56
56
|
- lib/fluent_command_builder/command_builders/nunit_26.rb
|
|
57
57
|
- lib/fluent_command_builder/command_builders/rake_09.rb
|
|
58
|
+
- lib/fluent_command_builder/command_builders/security_osx_107.rb
|
|
58
59
|
- lib/fluent_command_builder/command_builders/sevenzip_92.rb
|
|
59
60
|
- lib/fluent_command_builder/command_builders/simian_23.rb
|
|
60
61
|
- lib/fluent_command_builder/command_builders/tf_2010.rb
|