Class: Ritsu::Thors::DefaultThor

Inherits:
Thor
  • Object
show all
Defined in:
lib/ritsu/thors/default_thor.rb

Instance Method Summary collapse

Instance Method Details

#cmakeObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/ritsu/thors/default_thor.rb', line 15

def cmake
  prepare_cmake_generator
  
  if !File.exists?(Ritsu::Project.instance.project_dir + "/build")
    FileUtils.mkdir_p(Ritsu::Project.instance.project_dir + "/build")
  end

  FileUtils.chdir("build", :verbose => true)
  system("cmake ../src -G\"#{@cmake_generator}\"")
end

#updateObject



28
29
30
31
32
# File 'lib/ritsu/thors/default_thor.rb', line 28

def update
  prepare_cmake_generator
  update_src
  cmake
end

#update_srcObject



9
10
11
# File 'lib/ritsu/thors/default_thor.rb', line 9

def update_src
  Ritsu::Project.instance.update
end