class Chef::Knife::PinningsList

This class implements knife pinnings list ['environment_regex'] ['cookbook_regex']

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/pinnings_list.rb, line 22
def run
  environment_regex = "#{name_args[0] || '.*'}"
  cookbook_regex = "#{name_args[1] || '.*'}"
  environments = filter_environments(Environment.list(true), environment_regex)
  display_environments(environments, cookbook_regex)
end