Sha256: dde750d1a5814735c254177f68d50620c590b8511c1e5cf4a7b127f52de6c3fb

Contents?: true

Size: 316 Bytes

Versions: 4

Compression:

Stored size: 316 Bytes

Contents

module Blather
  module DSL
    class PubSub
      def create_with_configuration(node, configuration, host = nil)
        stanza = Stanza::PubSub::Create.new(:set, send_to(host), node)
        stanza.configure_node << configuration
        request(stanza) { |n| yield n if block_given? }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
omf_common-6.0.0.pre.4 lib/omf_common/core_ext/blather/dsl/pubsub.rb
omf_common-6.0.0.pre.3 lib/omf_common/core_ext/blather/dsl/pubsub.rb
omf_common-6.0.0.pre.2 lib/omf_common/core_ext/blather/dsl/pubsub.rb
omf_common-6.0.0.pre.1 lib/omf_common/core_ext/blather/dsl/pubsub.rb