features/support/firewall_helper.rb in message-driver-0.3.0 vs features/support/firewall_helper.rb in message-driver-0.4.0
- old
+ new
@@ -1,26 +1,25 @@
module FirewallHelper
-
def self.port
BrokerConfig.current_adapter_port
end
COMMANDS = {
darwin: {
setup: [
- "lunchy stop rabbit"
+ 'lunchy stop rabbit'
],
teardown: [
- "lunchy start rabbit"
+ 'lunchy start rabbit'
]
},
linux: {
setup: [
- "sudo service rabbitmq-server stop"
+ 'sudo service rabbitmq-server stop'
],
teardown: [
- "sudo service rabbitmq-server start"
+ 'sudo service rabbitmq-server start'
]
}
}
def block_broker_port
@@ -47,10 +46,10 @@
:linux
end
end
def darwin?
- system("uname | grep Darwin")
+ system('uname | grep Darwin')
end
end
World(FirewallHelper)