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.6.1 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.6.0 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.11 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.10 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.9 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.8 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.7 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.6 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.5 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.4 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.3 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.2 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.1 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.5.0 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.4.10 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.4.9 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.4.8 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.4.7 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.4.6 lib/fsr/app/bind_meta_app.rb
freeswitcher-0.4.4 lib/fsr/app/bind_meta_app.rb