OpenShift::RoutingService
# File lib/openshift/activemq_routing_plugin.rb, line 9 def initialize @topic = Rails.application.config.routing_activemq[:topic] @conn = Stomp::Connection.open Rails.application.config.routing_activemq[:username], Rails.application.config.routing_activemq[:password], Rails.application.config.routing_activemq[:host], Rails.application.config.routing_activemq[:port], true end
# File lib/openshift/activemq_routing_plugin.rb, line 46 def notify_add_alias(app, alias_str) msg = { :action => :add_alias, :app_name => app.name, :namespace => app.domain.namespace, :alias => alias_str } send_msg msg.to_yaml end
# File lib/openshift/activemq_routing_plugin.rb, line 66 def notify_create_application(app) msg = { :action => :create_application, :app_name => app.name, :namespace => app.domain.namespace, } send_msg msg.to_yaml end
# File lib/openshift/activemq_routing_plugin.rb, line 84 def notify_create_public_endpoint(app, endpoint_name, public_ip, public_port, protocols, types, mappings) msg = { :action => :add_gear, :app_name => app.name, :namespace => app.domain.namespace, :public_port_name => endpoint_name, :public_address => public_ip, :public_port => public_port, :protocols => protocols, :types => types, :mappings => mappings } send_msg msg.to_yaml end
# File lib/openshift/activemq_routing_plugin.rb, line 75 def notify_delete_application(app) msg = { :action => :delete_application, :app_name => app.name, :namespace => app.domain.namespace, } send_msg msg.to_yaml end
# File lib/openshift/activemq_routing_plugin.rb, line 99 def notify_delete_public_endpoint(app, public_ip, public_port) msg = { :action => :delete_gear, :app_name => app.name, :namespace => app.domain.namespace, :public_address => public_ip, :public_port => public_port } send_msg msg.to_yaml end
# File lib/openshift/activemq_routing_plugin.rb, line 56 def notify_remove_alias(app, alias_str) msg = { :action => :remove_alias, :app_name => app.name, :namespace => app.domain.namespace, :alias => alias_str } send_msg msg.to_yaml end
# File lib/openshift/activemq_routing_plugin.rb, line 23 def notify_ssl_cert_add(app, fqdn, ssl_cert, pvt_key, passphrase) msg = { :action => :add_ssl, :app_name => app.name, :namespace => app.domain.namespace, :alias => fqdn, :ssl => ssl_cert, :private_key => pvt_key, :pass_phrase => passphrase } send_msg msg.to_yaml end
Generated with the Darkfish Rdoc Generator 2.