Class: Tau::Cli

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

Instance Method Summary collapse

Instance Method Details

#buildObject



26
27
28
# File 'lib/tau/cli.rb', line 26

def build
  Tau::Builder.build
end

#new(project_name) ⇒ Object



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

def new(project_name)
  begin
    Tau::Projecter.new_project(Dir.pwd, project_name)
  rescue Exception => e
    puts e.message
  end
end

#serverObject



21
22
23
# File 'lib/tau/cli.rb', line 21

def server
  Tau::Server.start
end

#versionObject



31
32
33
# File 'lib/tau/cli.rb', line 31

def version
  puts "Tau #{Tau::VERSION}"
end