Sha256: e40a787af87607eca380a40ddfe9a69f07deb7ca66e186d50e48eec5ef9c2989
Contents?: true
Size: 521 Bytes
Versions: 10
Compression:
Stored size: 521 Bytes
Contents
require 'chef/knife' class Chef class Knife class TagList < Knife deps do require 'chef/node' end banner "knife tag list NODE" def run name = @name_args[0] tags = @name_args[1..-1].join(",").split(/\s*,\s*/) unless name or tags.empty? show_usage # TODO: blah blah ui.fatal("You must specify a node name") exit 1 end node = Chef::Node.load name output node.tags end end end end
Version data entries
10 entries across 10 versions & 2 rubygems