Sha256: 4ea60c03bf42a3a16d5f672c36237f251c98820e94c4e97320444705a0fd4b70

Contents?: true

Size: 544 Bytes

Versions: 2

Compression:

Stored size: 544 Bytes

Contents

module Pah
  module Templates
    class Public < Pah::Template
      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.'
        puts "\n"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pah-0.0.20 lib/pah/templates/public.rb
pah-0.0.19 lib/pah/templates/public.rb