Sha256: b5d880729fb29387678a8a517a09a87c1e62f31a82915d78f5ac9247041e0d4b
Contents?: true
Size: 292 Bytes
Versions: 8
Compression:
Stored size: 292 Bytes
Contents
require 'json' file = File.read('detector.json') types = JSON.parse(file) chosen = nil types.each do |item| if File.exist? (item['file_requirement']) chosen = item break end end unless chosen.nil? puts "Found: " + chosen['type'] puts "how to install: " + chosen['installation'] end
Version data entries
8 entries across 8 versions & 1 rubygems
Version | Path |
---|---|
gito-0.4.7 | detector.rb |
gito-0.4.6 | detector.rb |
gito-0.4.5 | detector.rb |
gito-0.4.4 | detector.rb |
gito-0.4.3 | detector.rb |
gito-0.4.2 | detector.rb |
gito-0.4.1 | detector.rb |
gito-0.3.1 | detector.rb |