Sha256: 6e28f7dfe8ea975d2d284482e716632046cef7740f34838b3b1a2f9cb1327c4c

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

require 'guard/jekyll_plus/builder/action'

module Guard
  class JekyllPlus < Plugin
    class Builder
      class Adder < Action
        def initialize(*args)
          @msg = 'Files added: '
          @mark = '  + '.green
          @name = 'copy'
          @activity = 'copying'
          @color = :green
          super
        end

        def do_update(files)
          header(files)
          files.each { |file| copy(file, destination_path(file)) }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guard-jekyll-plus-2.0.2 lib/guard/jekyll_plus/builder/adder.rb
guard-jekyll-plus-2.0.1 lib/guard/jekyll_plus/builder/adder.rb