Class: FlashSDK::FCSH

Inherits:
Sprout::Executable::Session
  • Object
show all
Defined in:
lib/flashsdk/fcsh.rb

Instance Method Summary collapse

Instance Method Details

#clearObject

Clear the saved compilation target from memory.

Parameters:

  • id (Integer)


34
# File 'lib/flashsdk/fcsh.rb', line 34

add_action :clear

#compcObject

Perform compilation using COMPC and the provided arguments.

Parameters:

  • options (String)


42
# File 'lib/flashsdk/fcsh.rb', line 42

add_action :compc

#compileObject

Execute a saved compilation from the provided id number.

Parameters:

  • id (Integer)


50
# File 'lib/flashsdk/fcsh.rb', line 50

add_action :compile

#executableObject

The default executable target.



21
# File 'lib/flashsdk/fcsh.rb', line 21

set :executable, :fcsh

#mxmlcObject

Perform compilation using MXMLC and the provided arguments.

Parameters:

  • options (String)


58
# File 'lib/flashsdk/fcsh.rb', line 58

add_action :mxmlc

#pkg_nameObject

The the Ruby file that will load the expected Sprout::Specification.

Default value is ‘flex4’



11
# File 'lib/flashsdk/fcsh.rb', line 11

set :pkg_name, 'flex4'

#pkg_versionObject

The default pkg version



16
# File 'lib/flashsdk/fcsh.rb', line 16

set :pkg_version, ">= #{FlashSDK::VERSION}"

#promptObject

Set the default prompt that should be presented

on stdout when fcsh is ready for input.


26
# File 'lib/flashsdk/fcsh.rb', line 26

set :prompt, /^\(fcsh\) /

#quitObject

Exit FCSH



62
# File 'lib/flashsdk/fcsh.rb', line 62

add_action :quit

#system_execute(binary, params) ⇒ Object



65
66
67
68
69
70
71
72
# File 'lib/flashsdk/fcsh.rb', line 65

def system_execute binary, params
  params ||= ''
  ##
  # Combine stdout and stderr for FCSH
  # so that they both arrive on stdout
  params << ' 2<&1'
  super binary, params
end