lib/marionette/setup.rb in marionette-0.0.5 vs lib/marionette/setup.rb in marionette-0.0.6

- old
+ new

@@ -4,10 +4,10 @@ # Setup method configures the server for running marionette as a service at boot up. def setup(options={}) # Set default(s) ip = `sudo /sbin/ifconfig eth1 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` - options = { :uri => "tcp://#{ip}:5555" } if options.nil? + options = { :uri => "tcp://#{ip.strip}:5555" } if options.nil? # Set up marionette as a service to start at boot. # define task: # 1) write to init.d/marionette # 2) set permissions