Class: FlashPlayer::Task

Inherits:
Rake::Task
  • Object
show all
Defined in:
lib/flashplayer/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_name, rake_application) ⇒ Task

This is the Rake::Task constructor signature…



13
14
15
16
17
18
19
# File 'lib/flashplayer/task.rb', line 13

def initialize task_name, rake_application
  super
  @input = task_name
  @player = FlashPlayer::Executable.new
  @pkg_name = FlashPlayer::NAME
  @pkg_version = FlashPlayer::VERSION
end

Instance Attribute Details

#inputObject

Returns the value of attribute input.



6
7
8
# File 'lib/flashplayer/task.rb', line 6

def input
  @input
end

#pkg_nameObject

Returns the value of attribute pkg_name.



7
8
9
# File 'lib/flashplayer/task.rb', line 7

def pkg_name
  @pkg_name
end

#pkg_versionObject

Returns the value of attribute pkg_version.



8
9
10
# File 'lib/flashplayer/task.rb', line 8

def pkg_version
  @pkg_version
end

Instance Method Details

#execute(*args) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/flashplayer/task.rb', line 21

def execute *args
  super
  update_input_if_necessary
  @player.input = input
  @player.fdb = use_fdb?
  @player.execute
end

#loggerObject



33
34
35
# File 'lib/flashplayer/task.rb', line 33

def logger
  @player.logger
end

#logger=(logger) ⇒ Object



29
30
31
# File 'lib/flashplayer/task.rb', line 29

def logger=(logger)
  @player.logger = logger
end