Sha256: 73a6627aaf54e78aaa7c55eae76d9ca0b1e387356425abf32c9d6d7be376e0ca

Contents?: true

Size: 356 Bytes

Versions: 23

Compression:

Stored size: 356 Bytes

Contents

module Spring
  module Client
    class Server < Command
      def self.description
        "Explicitly start a Spring server in the foreground"
      end

      def call
        require "spring/server"
        Spring::Server.boot(foreground: foreground?)
      end

      def foreground?
        !args.include?("--background")
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
spring-1.7.2 lib/spring/client/server.rb
spring-1.7.1 lib/spring/client/server.rb
spring-1.7.0 lib/spring/client/server.rb