Class: Gatch::CLI

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

Instance Method Summary collapse

Instance Method Details

#defaultObject



11
12
13
14
15
16
17
# File 'lib/gatch/cli.rb', line 11

def default()
	if options[:version]
		puts "v1.0.5"
	else
		puts "Usuage: gatch [command] [option]"
	end
end

#initObject



20
21
22
# File 'lib/gatch/cli.rb', line 20

def init()
	system("git clone https://github.com/rinov/gatch-gulp")
end

#startObject



25
26
27
# File 'lib/gatch/cli.rb', line 25

def start()
	system("gulp")
end