Project

General

Profile

Revision 0c7641a0

Added by Thomas McKay over 8 years ago

pfacts - facts working

View differences:

lib/hammer_cli_csv/base.rb
32 32
module HammerCLICsv
33 33
  class BaseCommand < HammerCLI::AbstractCommand
34 34

  
35
    NAME = 'Name'
36
    COUNT = 'Count'
37

  
35 38
    HEADERS = {'Accept' => 'version=2,application/json'}
36 39

  
37 40
    option ["-v", "--verbose"], :flag, "be verbose"
......
94 97
        lines = csv[start_index...finish_index].clone
95 98
        splits << Thread.new do
96 99
          lines.each do |line|
97
            if line.index('#') != 0
100
            if line[NAME][0] != '#'
98 101
              yield line
99 102
            end
100 103
          end

Also available in: Unified diff