Sha256: d00b041fcf4860c081429fdc3d03fd4a1addad983f93a83ad0d6a8c747b0efef

Contents?: true

Size: 498 Bytes

Versions: 3

Compression:

Stored size: 498 Bytes

Contents

guard 'shell' do
  watch(/^.*\.adoc$/) { |m|
    if not m[0].start_with?('_preview') and not m[0].start_with?('_package')
      full_path      = m[0].split('/')
      src_group_path = full_path.length == 1 ? '' : full_path[0..-2].join('/')
      filename       = full_path[-1][0..-6]
      system("bundle exec rake refresh_page['#{src_group_path}:#{filename}']")
    end
  }
end

guard 'livereload' do
  watch(%r{^_preview/.+\.(css|js|html)$})
  watch(%r{^_preview/.+\/.+\/.+\.(css|js|html)$})
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ascii_binder-0.0.7 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.0.6 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.0.5 lib/ascii_binder/tasks/guards.rb