Module: FlashPlayer

Defined in:
lib/flashplayer/task.rb,
lib/flashplayer/trust.rb,
lib/flashplayer/errors.rb,
lib/flashplayer/module.rb,
lib/flashplayer/log_file.rb,
lib/flashplayer/mm_config.rb,
lib/flashplayer/executable.rb

Defined Under Namespace

Classes: Executable, LogFile, MMConfig, PathError, Task, Trust, UsageError

Constant Summary collapse

NAME =
'flashplayer'
VERSION =
'11.1.102'

Class Method Summary collapse

Class Method Details

.flashlogObject



22
23
24
# File 'lib/flashplayer/module.rb', line 22

def flashlog
  File.join home, 'Logs', 'flashlog.txt'
end

.homeObject



8
9
10
11
12
13
14
15
16
# File 'lib/flashplayer/module.rb', line 8

def home
  # NOTE: Look up the value every time,
  # this way we're not storing state globally
  # and the performance penalty is minimal...
  home_paths.each do |path|
    return path if File.exists?(path)
  end
  raise FlashPlayer::PathError.new('FlashPlayer unable to find home folder for your System')
end

.trustObject



18
19
20
# File 'lib/flashplayer/module.rb', line 18

def trust
  File.join home, '#Security', 'FlashPlayerTrust', 'sprout.cfg'
end