Class: Ritsu::Thors::DefaultThor
- Inherits:
-
Thor
- Object
- Thor
- Ritsu::Thors::DefaultThor
- Defined in:
- lib/ritsu/thors/default_thor.rb
Instance Method Summary collapse
Instance Method Details
#cmake ⇒ Object
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 |
#update ⇒ Object
28 29 30 31 32 |
# File 'lib/ritsu/thors/default_thor.rb', line 28 def update prepare_cmake_generator update_src cmake end |