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.
114
115
116
117
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 114
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
158
159
160
161
162
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 158
def allow_application(app_path)
@b.append " -T #{@b.format app_path}"
yield @b if block_given?
self
end
|
#allow_without_warning {|@b| ... } ⇒ Object
153
154
155
156
157
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 153
def allow_without_warning
@b.append ' -A'
yield @b if block_given?
self
end
|
#attribute(name, value) {|@b| ... } ⇒ Object
148
149
150
151
152
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 148
def attribute(name, value)
@b.append " -a #{@b.format name} #{@b.format value}"
yield @b if block_given?
self
end
|
128
129
130
131
132
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 128
def format(format)
@b.append " -f #{@b.format format}"
yield @b if block_given?
self
end
|
#keychain(keychain) {|@b| ... } ⇒ Object
118
119
120
121
122
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 118
def keychain(keychain)
@b.append " -k #{@b.format keychain}"
yield @b if block_given?
self
end
|
138
139
140
141
142
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 138
def
@b.append ' -x'
yield @b if block_given?
self
end
|
#password(password) {|@b| ... } ⇒ Object
143
144
145
146
147
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 143
def password(password)
@b.append " -P #{@b.format_password password}"
yield @b if block_given?
self
end
|
#type(type) {|@b| ... } ⇒ Object
123
124
125
126
127
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 123
def type(type)
@b.append " -t #{@b.format type}"
yield @b if block_given?
self
end
|
#wrapped {|@b| ... } ⇒ Object
133
134
135
136
137
|
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 133
def wrapped
@b.append ' -w'
yield @b if block_given?
self
end
|