Sha256: e81aa646b2ff426b60333e35a774a40947e2f660d7390d0765cb0b0d07ebb48f

Contents?: true

Size: 890 Bytes

Versions: 4

Compression:

Stored size: 890 Bytes

Contents

module Airake #:nodoc:
  
  module Commands #:nodoc:
    
    # 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, :appxml_path, :root_dir
      
      # options:: :adl_path, :adl_extra_opts, :appxml_path, :root_dir
      def initialize(options = {})
        @path = options[:adl_path] || "adl"
        @extra_opts = options[:adl_extra_opts]
        with_options(options)
        assert_required([ :path, :appxml_path, :root_dir ])
      end
      
      # Get the ADL launch command
      def launch
        command = []
        command << @path
        command << @extra_opts
        command << escape(@appxml_path)
        command << escape(@root_dir)
        process(command)
      end      
      
    end
    
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
airake-0.2.10 lib/airake/commands/adl.rb
airake-0.2.11 lib/airake/commands/adl.rb
airake-0.2.12 lib/airake/commands/adl.rb
airake-0.2.9 lib/airake/commands/adl.rb