Sha256: 3ba12295b38a1bc69a17ea67159d00a60080faa474124f7e80278c4030e4ef1b

Contents?: true

Size: 519 Bytes

Versions: 3

Compression:

Stored size: 519 Bytes

Contents

require 'commander'
require_relative '../lib/generator'
require_relative '../lib/setup'
require_relative '../lib/server'

module ServerCommand
	def server(c)
		c.syntax = 'm2m server [options]'
		c.summary = ''
		c.description = '创建一个服务器'
		c.option '-p INTEGER', '--port INTEGER', Integer, '生成的目标目录'
		c.action do |args, options|
			util = Util.instance
			setup = Setup.instance

			#合并目录
			util.workbench = util.get_merge_path './'
			Server.new.start options.port
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
m2m-0.2.3 exe/server.rb
m2m-0.2.1 exe/server.rb
m2m-0.2.0 exe/server.rb