Sha256: 2fccd52a30b40af14bd1ae257be95642cdb7987929bf929b9f3e4fba701c35aa
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
module MyScripts 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
my_scripts-0.0.7 | lib/my_scripts/rabbit.rb |
my_scripts-0.0.6 | lib/my_scripts/rabbit.rb |