Class: FluentCommandBuilder::SecurityOSX::V107::Import

Inherits:
CommandBase
  • Object
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

Yields:

  • (@b)


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

Yields:

  • (@b)


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

Yields:

  • (@b)


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

#format(format) {|@b| ... } ⇒ Object

Yields:

  • (@b)


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

Yields:

  • (@b)


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

#not_extractable {|@b| ... } ⇒ Object

Yields:

  • (@b)


137
138
139
140
141
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 137

def not_extractable
  @b.append ' -x'
  yield @b if block_given?
  self
end

#password(password) {|@b| ... } ⇒ Object

Yields:

  • (@b)


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

Yields:

  • (@b)


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

Yields:

  • (@b)


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