Sha256: 003d829d5c3edbf9308d6702eddb1edfc95a39806de54b10d6d82fd565bf1296

Contents?: true

Size: 691 Bytes

Versions: 3

Compression:

Stored size: 691 Bytes

Contents

# -*- coding: utf-8 -*-

require 'commander'
require_relative '../lib/setup'
require_relative '../lib/util'

module SetupCommand
	def setup(c)
		c.syntax = 'm2m setup [options]'
		c.summary = ''
		c.description = '配置M2M'
		c.option '--mail', '配置邮件相关的信息'
		c.option '--mail-password', '配置邮件相关的信息'
		c.option '--site', '在当前目录下,配置网站相关信息'
		c.action do |args, options|
			setup = Setup.instance
			util = Util.instance

			if options.mail
				setup.ask_mail
			elsif options.mail_password
				setup.ask_mail_password
			elsif options.site
				util.workbench = util.get_merge_path './'
				setup.ask_site
			end
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
m2m-0.2.9 exe/setup.rb
m2m-0.2.8 exe/setup.rb
m2m-0.2.7 exe/setup.rb