Class: FluentCommandBuilder::SecurityOSX::V108::FindCertificate

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

Returns a new instance of FindCertificate.



73
74
75
76
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 73

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

Instance Method Details

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

Yields:

  • (@b)


77
78
79
80
81
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 77

def all
  @b.append ' -a'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


87
88
89
90
91
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 87

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

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

Yields:

  • (@b)


107
108
109
110
111
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 107

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

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

Yields:

  • (@b)


82
83
84
85
86
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 82

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

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

Yields:

  • (@b)


97
98
99
100
101
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 97

def output_pem_format
  @b.append ' -p'
  yield @b if block_given?
  self
end

Yields:

  • (@b)


102
103
104
105
106
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 102

def print_sha1_hash
  @b.append ' -Z'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


92
93
94
95
96
# File 'lib/fluent_command_builder/command_builders/security_osx_108.rb', line 92

def show_email_addresses
  @b.append ' -m'
  yield @b if block_given?
  self
end