Sha256: c585b2ecf7b9966fae4da705b178e7a752ef149356835aa9ab819d7343cb7f0c

Contents?: true

Size: 1.83 KB

Versions: 29

Compression:

Stored size: 1.83 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, '-'

    ##
    # Overide the default task creation so
    # adl will run regardless of a file product.
    #
    def create_outer_task *args
      Rake::Task.define_task(*args) do
        execute
      end
    end

    ##
    # Overide the default behaviour to stop the file product
    # being added to to the CLEAN task.
    #
    def update_rake_task_name_from_args *args
      self.rake_task_name = parse_rake_task_arg args.last
      self.rake_task_name
    end
  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

29 entries across 29 versions & 3 rubygems

Version Path
h4oflashsdk-1.0.13 lib/flashsdk/adl.rb
h4oflashsdk-1.0.12 lib/flashsdk/adl.rb
h4oflashsdk-1.0.11 lib/flashsdk/adl.rb
h4oflashsdk-1.0.10 lib/flashsdk/adl.rb
h4oflashsdk-1.0.9 lib/flashsdk/adl.rb
h4oflashsdk-1.0.8 lib/flashsdk/adl.rb
h4oflashsdk-1.0.7 lib/flashsdk/adl.rb
h4oflashsdk-1.0.6 lib/flashsdk/adl.rb
h4oflashsdk-1.0.5 lib/flashsdk/adl.rb
h4oflashsdk-1.0.4 lib/flashsdk/adl.rb
h4oflashsdk-1.0.3 lib/flashsdk/adl.rb
h4oflashsdk-1.0.2 lib/flashsdk/adl.rb
h4oflashsdk-1.0.1 lib/flashsdk/adl.rb
h4oflashsdk-1.0.0 lib/flashsdk/adl.rb
flashsdk_sqe-0.0.14 lib/flashsdk/adl.rb
flashsdk_sqe-0.0.13 lib/flashsdk/adl.rb
flashsdk_sqe-0.0.12 lib/flashsdk/adl.rb
flashsdk_sqe-0.0.11 lib/flashsdk/adl.rb
flashsdk_sqe-0.0.10 lib/flashsdk/adl.rb
flashsdk_sqe-0.0.9 lib/flashsdk/adl.rb