Sha256: 7c992d7f4330d0c381699a4e2d2872d5b73355d9cd39f01b2ba39313e297fb2a

Contents?: true

Size: 568 Bytes

Versions: 11

Compression:

Stored size: 568 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
soaring-0.1.10 lib/soaring/runner.rb
soaring-0.1.9 lib/soaring/runner.rb
soaring-0.1.8 lib/soaring/runner.rb
soaring-0.1.7 lib/soaring/runner.rb
soaring-0.1.6 lib/soaring/runner.rb
soaring-0.1.5 lib/soaring/runner.rb
soaring-0.1.4 lib/soaring/runner.rb
soaring-0.1.3 lib/soaring/runner.rb
soaring-0.1.2 lib/soaring/runner.rb
soaring-0.1.1 lib/soaring/runner.rb
soaring-0.1.0 lib/soaring/runner.rb