Class: Jekyll::StaticFile

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll/static_file.rb

Instance Method Summary collapse

Instance Method Details

#_octopod_original_writeObject



12
# File 'lib/jekyll/static_file.rb', line 12

alias_method :_octopod_original_write, :write

#octopod_excludeObject



4
5
6
7
8
9
10
# File 'lib/jekyll/static_file.rb', line 4

def octopod_exclude
  src = path.sub("#{@base}/", '')
  nested_files = %w[]

  excludes = %w[Gemfile Gemfile.lock README.md octopod]
  return true if excludes.include?(src)
end

#write(dest) ⇒ Object



14
15
16
17
18
# File 'lib/jekyll/static_file.rb', line 14

def write(dest)
  return true if octopod_exclude

  _octopod_original_write(dest)
end