Class: Strings2CSVCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/csvconverter/commands/strings2csv_command.rb

Instance Method Summary collapse

Methods inherited from Command

#csv_download

Instance Method Details

#strings2csvObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/csvconverter/commands/strings2csv_command.rb', line 12

def strings2csv
  unless options.has_key?('filenames')
    say "No value provided for required options '--filenames'"
    help("strings2csv")
    return
  end
  converter = Strings2CSV.new(options)
	debug_values = converter.dotstrings_to_csv(!options[:dryrun])
  say debug_values.inspect if options[:dryrun]
end