module Soaring class Runner def initialize(options) @options = options end def run(project_folder) environment = 'development' environment = @options[:environment] if @options[:environment] port = 9393 port = @options[:port] if @options[:port] bind_address = '0.0.0.0' rackup_parameters = "-E #{environment} ./config.ru -p #{port} --host #{bind_address}" puts "starting rackup with parameters #{rackup_parameters}" if @options[:verbose] `bundle exec rackup #{rackup_parameters}` end end end