Sha256: 9d94c0428ddbf33f819070cfb257f01c2d649ade032efdaacf9638cf0414e26a

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

# encoding: utf-8

module Nanoc::Extra::VCSes
  # @see Nanoc::Extra::VCS
  class Dummy < Nanoc::Extra::VCS
    # @see Nanoc::Extra::VCS#add
    def add(_filename)
    end

    # @see Nanoc::Extra::VCS#remove
    def remove(filename)
      FileUtils.rm_rf(filename)
    end

    # @see Nanoc::Extra::VCS#move
    def move(src, dst)
      FileUtils.move(src, dst)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nanoc-3.8.0 lib/nanoc/extra/vcses/dummy.rb
nanoc-3.7.5 lib/nanoc/extra/vcses/dummy.rb