Class: Chef::Knife::TarsnapKeyList

Inherits:
Chef::Knife show all
Includes:
Chef::Knife::Tarsnap::Core
Defined in:
lib/chef/knife/tarsnap_key_list.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
# File 'lib/chef/knife/tarsnap_key_list.rb', line 27

def run

  ui.msg ui.color('status      node', :bold)
  tarsnap_nodes.each do |n|
    ui.msg "#{ui.color('registered  ', :green)}#{n}"
  end
  pending_nodes.each do |n|
    ui.msg "#{ui.color('pending     ', :yellow)}#{n}"
  end

end