Class: Oynx::Oynx_CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/oynx.rb

Instance Method Summary collapse

Instance Method Details

#newObject



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/oynx.rb', line 29

def new
	if options[:default] then
		Oynx_Back.new.create_site()
	else
		config = {}
		
		config["name"] = options[:name] if options[:name]
		config["charset"] = options[:charset] if options[:charset]
		config["css"] = options[:css] if not options[:css]
		config["js"] = options[:js] if not options[:js]
		config["img"] = options[:img] if not options[:img]

		Oynx_Back.new(config).create_site
	end
end