Sha256: 0f9cb525d2449a03eaf35d05a6f01b998a1333c5adb208d08fdb889ec7d560af
Contents?: true
Size: 510 Bytes
Versions: 3
Compression:
Stored size: 510 Bytes
Contents
module MyScripts # Starts and controls rabbitmq server class Rabbit < Script def run case @argv.shift when /start/ system "%ERLANG_HOME%/lib/rabbitmq_server-1.7.0/sbin/rabbitmq-server.bat #{ARGV.join(' ')}" when /ctl/ system "%ERLANG_HOME%/lib/rabbitmq_server-1.7.0/sbin/rabbitmqctl.bat #{ARGV.join(' ')}" else usage ["start [args] - starts rabbitmq node", "mqctl [args] - controls rabbitmq node"] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
my_scripts-0.0.12 | lib/my_scripts/rabbit.rb |
my_scripts-0.0.11 | lib/my_scripts/rabbit.rb |
my_scripts-0.0.9 | lib/my_scripts/rabbit.rb |