Sha256: 6f55275f206687e0cb654ebb0833f8d4a0ab2e2bd6bdfab387f432312c9c819f

Contents?: true

Size: 793 Bytes

Versions: 2

Compression:

Stored size: 793 Bytes

Contents

module Airake
  
  module Commands
    
    # ADL (Adobe Debug Lancher)
    #
    # http://livedocs.adobe.com/labs/air/1/devappsflex/help.html?content=CommandLineTools_4.html#1031914
    class Adl < Base
      
      attr_reader :project, :path, :extra_opts
      
      # options:: :adl_path, adl_extra_opts
      def initialize(project, options = {})
        @project = project
        @path = options[:adl_path] || "adl"
        @extra_opts = options[:adl_extra_opts]
      end
                  
      # Get the ADL launch command
      def launch
        command = []
        command << @path
        command << @extra_opts
        command << escape(project.appxml_path)
        command << escape(project.base_dir)
        process(command)
      end      
      
    end
    
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
airake-0.2.5 lib/airake/commands/adl.rb
airake-0.2.6 lib/airake/commands/adl.rb