def commands
      @commands ||= if @options[:except]
        @all_commands.reject{ |command| @options[:except].include?(command.label) }
      elsif @options[:only]
        @all_commands.select{ |command| @options[:only].include?(command.label) }
      else
        @all_commands
      end
    end
def commands
      @commands ||= if @options[:except]
        @all_commands.reject{ |command| @options[:except].include?(command.label) }
      elsif @options[:only]
        @all_commands.select{ |command| @options[:only].include?(command.label) }
      else
        @all_commands
      end
    end
Instantiate an instance of this class from a cookbook

 @param [Berkshelf::CachedCookbook] cookbook
   the cached cookbook to search for a Strainerfile
 @param [Hash] options
   a list of options to pass along
 @return [Strainerfile]
   an instance of this class
 Get the list of commands to run, filtered by the `@options` hash for either
 `:ignore` or `:only`

 @return [Array<Strainer::Command>]
   the list of commands to execute