Sha256: a88134a58118ffd8068573202362ba1c44e3c401d1b1d4f0ddab8a3fa05eaacf

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

module Spigoter
	module CLI
		def self.start
			return Start::start
		end
		module Start
			def self.start
				return lambda do |opts|
					main(opts)
				end
			end
			def self.main(opts = {})
				unless Spigoter::Utils.which('java').nil?
					Log.info "Starting the server!"
					system("java #{opts[:javaparm]} -jar spigot.jar")
				else
					Log.error "You don't have java in PATH"
				end
			end
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spigoter-0.3.0 lib/spigoter/cli/cli_start.rb