Sha256: 41fa5040ad4fc9e14e885f6f6c6baf2aeef035ac3ea85e1d6df2e20e4442c380

Contents?: true

Size: 609 Bytes

Versions: 41

Compression:

Stored size: 609 Bytes

Contents

require "fsr/app"
module FSR
  module App
    class BindMetaApp < Application
      attr_reader :options

      def initialize(args)
        @options = args
      end

      # It would be better to fix App#app_name to transform
      # CamelCase to snake_case, but that'll be later.
      def app_name
        "bind_meta_app"
      end

      def arguments
        parameters = options[:parameters] ? "::#{options[:parameters]}" : ""
        [options[:key], options[:listen_to], options[:respond_on], options[:application] + parameters]
      end
    end

    register(:bind_meta_app, BindMetaApp)
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
freeswitcher-0.8.0 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.7.1 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.7.0 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.18 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.17 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.16 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.15 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.14 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.13 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.12 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.11 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.10 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.9 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.8 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.7 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.6 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.5 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.4 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.3 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.2 lib/fsr/app/bind_meta_app.rb