Module: Tonic::GhPages

Defined in:
lib/tonic/gh_pages.rb

Class Method Summary collapse

Class Method Details

.activate(template = nil) ⇒ Object



5
6
7
# File 'lib/tonic/gh_pages.rb', line 5

def activate(template = nil)
  gh_pages(template)
end

.push_pagesObject



9
10
11
12
13
14
15
# File 'lib/tonic/gh_pages.rb', line 9

def push_pages
  if in_gh_pages_branch?
    exec 'git push -f origin gh-pages'
  else
    puts 'Forget about it bro'
  end
end