Class: FlashPlayer::Task
- Inherits:
-
Rake::Task
- Object
- Rake::Task
- FlashPlayer::Task
- Defined in:
- lib/flashplayer/task.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
-
#pkg_name ⇒ Object
Returns the value of attribute pkg_name.
-
#pkg_version ⇒ Object
Returns the value of attribute pkg_version.
Instance Method Summary collapse
- #execute(*args) ⇒ Object
-
#initialize(task_name, rake_application) ⇒ Task
constructor
This is the Rake::Task constructor signature…
- #logger ⇒ Object
- #logger=(logger) ⇒ Object
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
#input ⇒ Object
Returns the value of attribute input.
6 7 8 |
# File 'lib/flashplayer/task.rb', line 6 def input @input end |
#pkg_name ⇒ Object
Returns the value of attribute pkg_name.
7 8 9 |
# File 'lib/flashplayer/task.rb', line 7 def pkg_name @pkg_name end |
#pkg_version ⇒ Object
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 |
#logger ⇒ Object
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 |