Sha256: 13138f90c1ee393c799095312c9f5e19241d8b21fc79c749b547e457cc5e4138
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
require 'asproject' module AsProject class FlashLog attr_accessor :version def initialize @path_finder = PathFinder.new verify_config_file end def get_file return @path_finder.flash_player_log end private def verify_config_file config = @path_finder.flash_player_config if(!File.exists?(config)) content = @path_finder.flash_player_config_content write_config(config, content) end end private def write_config(location, content) puts <<EOF Correctly configured mm.cfg file not found at: #{location} This file is required in order to capture trace output. Would you like this file created automatically? [Yn] EOF if($stdin.gets.chomp.downcase.index('y')) File.open(location, 'w') do |f| f.write(content) end puts ">> Created: " + File.expand_path(location) else raise BuildError.new("Unable to create mm.cfg file at: #{location}") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
asproject-0.1.35 | lib/tasks/flash_log.rb |
asproject-0.1.36 | lib/tasks/flash_log.rb |
asproject-0.1.37 | lib/tasks/flash_log.rb |