Skip to content

Instantly share code, notes, and snippets.

View gauravsaini23's full-sized avatar

Gaurav Saini gauravsaini23

  • Trantor
  • Chandigarh
View GitHub Profile
@gauravsaini23
gauravsaini23 / amqp_server.rb
Created March 12, 2013 12:19
amqp implementation
require 'yaml'
######################
## SET CONFIGURATION
#####################
ENV['JAVA_HOME'] = '/usr/lib/jvm/java-6-openjdk-i386/'
APP_CONFIG = YAML.load_file(File.expand_path("./../../../config/instances/hcl.yml", __FILE__))[ARGV[0].to_s]
unless ARGV[0]
puts "Please pass on the environment param: development | test | production"
abort