Class: FluentCommandBuilder::SecurityOSX::V107::DeleteCertificate

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) ⇒ DeleteCertificate



46
47
48
49
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 46

def initialize(underlying_builder)
  super underlying_builder
  @b.append ' delete-certificate'
end

Instance Method Details

#common_name(name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


50
51
52
53
54
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 50

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

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

Yields:

  • (@b)


60
61
62
63
64
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 60

def delete_user_trust_settings
  @b.append ' -t'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


55
56
57
58
59
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 55

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

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

Yields:

  • (@b)


65
66
67
68
69
# File 'lib/fluent_command_builder/command_builders/security_osx_107.rb', line 65

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