Class: Airake::Commands::FlashPlayer

Inherits:
Base show all
Defined in:
lib/airake/commands/flash_player.rb

Overview

Flash Player (standalone)

In progress, untested.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#assert_not_blank, #assert_required, #escape, #include_classes, #library_paths, #process, #relative_path, #source_paths, #windows?, #with_options

Constructor Details

#initialize(options = {}) ⇒ FlashPlayer

Create Flash Player command.

Options

flash_player

Path to flash player, defaults to ‘/Applications/Flash Player.app/Contents/MacOS/Flash Player’

swf_path

Path to swf



19
20
21
# File 'lib/airake/commands/flash_player.rb', line 19

def initialize(options = {})
  with_options(options, { :flash_player => "/Applications/Flash Player.app/Contents/MacOS/Flash Player" })               
end

Instance Attribute Details

#swf_pathObject (readonly)

Returns the value of attribute swf_path.



11
12
13
# File 'lib/airake/commands/flash_player.rb', line 11

def swf_path
  @swf_path
end

Instance Method Details

#generateObject

The flash player command



24
25
26
27
28
# File 'lib/airake/commands/flash_player.rb', line 24

def generate
  command = []
  command << @swf_path
  process(command)
end