Class: Pah::Templates::Public

Inherits:
Pah::Template
  • Object
show all
Defined in:
lib/pah/templates/public.rb

Instance Method Summary collapse

Methods inherited from Pah::Template

#ask_unless_test, #copy_static_file, #git_commit, #static_files, #will_you_like_to?

Instance Method Details

#callObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/pah/templates/public.rb', line 4

def call
  inside 'public' do
    remove_file 'robots.txt'
    remove_file '404.html'
    remove_file '500.html'
  end

  copy_static_file 'public/robots.txt'
  copy_static_file 'public/404.html'
  copy_static_file 'public/500.html'

  git add: 'public/robots.txt'
  git add: 'public/404.html'
  git add: 'public/500.html'

  git_commit 'Add public files.'
end