Class: FluentCommandBuilder::SecurityOSX::V108::Import

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/security_osx_108.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_108.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

Yields:

  • (@b)


158
159
160
161
162
# File 'lib/fluent_command_builder/command_builders/security_osx_108.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

Yields:

  • (@b)


153
154
155
156
157
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 153

def allow_without_warning
  @b.append ' -A'
  yield @b if block_given?
  self
end

#attribute(name, value) {|@b| ... } ⇒ Object

Yields:

  • (@b)


148
149
150
151
152
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 148

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)


128
129
130
131
132
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 128

def format(format)
  @b.append " -f #{@b.format format}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


118
119
120
121
122
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 118

def keychain(keychain)
  @b.append " -k #{@b.format keychain}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


138
139
140
141
142
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 138

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

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

Yields:

  • (@b)


143
144
145
146
147
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 143

def password(password)
  @b.append " -P #{@b.format_password password}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


123
124
125
126
127
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 123

def type(type)
  @b.append " -t #{@b.format type}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


133
134
135
136
137
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 133

def wrapped
  @b.append ' -w'
  yield @b if block_given?
  self
end