Method: WebAnalyticsDiscovery::TNS#initialize
- Defined in:
- lib/web_analytics_discovery/grabber/tns.rb
#initialize ⇒ TNS
Returns a new instance of TNS.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/web_analytics_discovery/grabber/tns.rb', line 11 def initialize # This one requires xlsx2csv utility begin parser_version = `xlsx2csv --version` rescue Errno::ENOENT raise 'xlsx2csv not available: unable to run TNS report discovery' end # And an unzip utility begin unzip_version = `unzip -v` rescue Errno::ENOENT raise 'unzip not available: unable to run TNS report discovery' end end |