lib/puppet_x/coi/jboss/provider/jmsqueue.rb
# Method that creates jms-queue in JBoss instance.
Method that creates jms-queue in JBoss instance.
Method that creates jms - queue in JBoss instance .
def create
    profile = calc_profile
    entries = @resource[:entries].join '", "'
    raise 'Array of entries can not be empty' if entries.empty?
    entries = format('["%s"]', entries)
    durable = ToBooleanConverter.new(@resource[:durable]).to_bool
    ensure_default_hornetq
    cmd = "jms-queue #{profile} add --queue-address=#{@resource[:name]} " \
      "--entries=#{entries} --durable=#{durable}"
    bring_up 'JMS Queue', cmd
  end
def create profile = calc_profile entries = @resource [ :entries ] . join '", "' raise 'Array of entries can not be empty' if entries . empty? entries = format ( '["%s"]' , entries ) durable = ToBooleanConverter . new ( @resource [ :durable ] ) . to_bool ensure_default_hornetq cmd = "jms-queue #{profile} add --queue-address=#{@resource[:name]} " "--entries=#{entries} --durable=#{durable}" bring_up 'JMS Queue' , cmd end
Method that creates jms-queue in JBoss instance.
Method that creates jms - queue in JBoss instance .