Class: Chef::Knife::TarsnapKeyShow

Inherits:
Chef::Knife show all
Includes:
Chef::Knife::Tarsnap::Core
Defined in:
lib/chef/knife/tarsnap_key_show.rb

Instance Method Summary collapse

Methods included from Chef::Knife::Tarsnap::Core

#canonicalize, #fetch_key, #fetch_node, included, #is_a_tarsnap_node?, #keygen_tool, #pending_nodes, #remove_pending_node, #tarsnap_data_bag, #tarsnap_nodes, #tarsnap_password, #tarsnap_tool, #tarsnap_username

Instance Method Details

#runObject



27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/chef/knife/tarsnap_key_show.rb', line 27

def run

  unless name_args.size == 1
    ui.fatal "You must provide a node name"
    exit 1
  end

  n = name_args.first

  ui.msg fetch_key(n)

end