Class: FlashSDK::ADL

Inherits:
Sprout::Executable::Base
  • Object
show all
Defined in:
lib/flashsdk/adl.rb

Instance Method Summary collapse

Instance Method Details

#create_outer_task(*args) ⇒ Object

Overide the default task creation so adl will run regardless of a file product.



50
51
52
53
54
# File 'lib/flashsdk/adl.rb', line 50

def create_outer_task *args
  Rake::Task.define_task(*args) do
    execute
  end
end

#default_prefixObject

The default prefix



44
# File 'lib/flashsdk/adl.rb', line 44

set :default_prefix, '-'

#executableObject

The default executable target.



39
# File 'lib/flashsdk/adl.rb', line 39

set :executable, :adl

#pkg_nameObject

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

Default value is ‘flex4’



29
# File 'lib/flashsdk/adl.rb', line 29

set :pkg_name, 'flex4'

#pkg_versionObject

The default pkg version



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

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

#update_rake_task_name_from_args(*args) ⇒ Object

Overide the default behaviour to stop the file product being added to to the CLEAN task.



60
61
62
63
# File 'lib/flashsdk/adl.rb', line 60

def update_rake_task_name_from_args *args
  self.rake_task_name = parse_rake_task_arg args.last
  self.rake_task_name
end