Class: FluentCommandBuilder::SecurityOSX::V107::Import
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::SecurityOSX::V107::Import
show all
- Defined in:
- lib/fluent_command_builder/command_builders/security_osx_107.rb
Instance Method Summary
collapse
Methods inherited from CommandBase
#configure!, #execute!, #to_s
Constructor Details
#initialize(underlying_builder, input_file) ⇒ Import
Returns a new instance of Import.
113
114
115
116
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 113
def initialize(underlying_builder, input_file)
super underlying_builder
@b.append " import #{@b.format input_file}"
end
|
Instance Method Details
#allow_application(app_path) {|@b| ... } ⇒ Object
157
158
159
160
161
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 157
def allow_application(app_path)
@b.append " -T #{@b.format app_path}"
yield @b if block_given?
self
end
|
#allow_without_warning {|@b| ... } ⇒ Object
152
153
154
155
156
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 152
def allow_without_warning
@b.append ' -A'
yield @b if block_given?
self
end
|
#attribute(name, value) {|@b| ... } ⇒ Object
147
148
149
150
151
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 147
def attribute(name, value)
@b.append " -a #{@b.format name} #{@b.format value}"
yield @b if block_given?
self
end
|
127
128
129
130
131
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 127
def format(format)
@b.append " -f #{@b.format format}"
yield @b if block_given?
self
end
|
#keychain(keychain) {|@b| ... } ⇒ Object
117
118
119
120
121
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 117
def keychain(keychain)
@b.append " -k #{@b.format keychain}"
yield @b if block_given?
self
end
|
137
138
139
140
141
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 137
def
@b.append ' -x'
yield @b if block_given?
self
end
|
#password(password) {|@b| ... } ⇒ Object
142
143
144
145
146
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 142
def password(password)
@b.append " -P #{@b.format_password password}"
yield @b if block_given?
self
end
|
#type(type) {|@b| ... } ⇒ Object
122
123
124
125
126
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 122
def type(type)
@b.append " -t #{@b.format type}"
yield @b if block_given?
self
end
|
#wrapped {|@b| ... } ⇒ Object
132
133
134
135
136
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 132
def wrapped
@b.append ' -w'
yield @b if block_given?
self
end
|