class Chef::Knife::EncryptedAttributeShow

knife encrypted attribute show command.

“` $ knife encrypted attribute show NODE ATTRIBUTE (options) “`

Public Instance Methods

assert_valid_args() click to toggle source

(see EncryptedAttributeBase#assert_valid_args) @raise [ArgumentError] if the attribute path format is wrong.

# File lib/chef/knife/encrypted_attribute_show.rb, line 37
def assert_valid_args
  assert_attribute_exists(@node_name, @attr_ary)
end
run() click to toggle source

Runs knife command.

@return void @raise [ArgumentError] if the attribute path format is wrong. @raise [UnacceptableEncryptedAttributeFormat] if encrypted attribute

format is wrong.

@raise [UnsupportedEncryptedAttributeFormat] if encrypted attribute

format is not supported or unknown.

@raise [SearchFailure] if there is a Chef search error. @raise [SearchFatalError] if the Chef search response is wrong. @raise [InvalidSearchKeys] if search keys structure is wrong.

# File lib/chef/knife/encrypted_attribute_show.rb, line 52
def run
  parse_args

  enc_attr =
    Chef::EncryptedAttribute.load_from_node(@node_name, @attr_ary)
  output(enc_attr)
end