Sha256: 7597d221c9dd2cb8a70bf31b5c6f218e80ae705183fdda3d41b5229dbbe26aaa

Contents?: true

Size: 1.37 KB

Versions: 2

Compression:

Stored size: 1.37 KB

Contents

module FlashSDK

  class ADL < Sprout::Executable::Base

    add_param :runtime, Path

    add_param :pubid, String

    add_param :nodebug, Boolean

    add_param :profile, String, { :delimiter => ' ' }

    add_param :screensize, String, { :delimiter => ' ' }

    add_param :app_desc, String, { :hidden_name => true, :delimiter => ' ' }

    add_param :root_dir, String, { :hidden_name => true, :delimiter => ' ' }

    #add_param :shitty_dashes, String, { :hidden_name => true, :delimiter => ' ', :default => '--' }

    add_param :input, File, { :hidden_name => true }

    ##
    # The the Ruby file that will load the expected
    # Sprout::Specification.
    #
    # Default value is 'flex4'
    #
    set :pkg_name, 'flex4'

    ##
    # The default pkg version
    #
    set :pkg_version, ">= #{FlashSDK::VERSION}"
    
    ##
    # The default executable target.
    #
    set :executable, :adl

		##
		# The default prefix
		#
		set :default_prefix, '-'
  end
end

def adl *args, &block
  exe = FlashSDK::ADL.new
  exe.to_rake(*args, &block)
  exe
end

##
# TODO: This should NOT be here!
# This is preventing that method from working
# as expected only after this FILE is required.
class Sprout::System::UnixSystem

    def should_repair_executable path
      return false
      #return (File.exists?(path) && !File.directory?(path) && File.read(path).match(/^\#\!\/bin\/sh/))
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flashsdk-1.0.29.pre lib/flashsdk/adl.rb
flashsdk-1.0.28.pre lib/flashsdk/adl.rb