Method: Toe::Setup::GhPages#process
- Defined in:
- lib/toe/setup/gh_pages.rb
#process ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/toe/setup/gh_pages.rb', line 33 def process unless File.exists?(".git") raise "cannot setup pages, not a git repository" end sh "git symbolic-ref HEAD refs/heads/gh-pages" if File.exists?(".git/index") sh "rm .git/index" end if clean sh "git clean -fdx" end end |