Sha256: 8622dd8363f97acef9d16683abefb928cb0be15bc1339be4199ba573b472796a

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

# encoding: utf-8

module Nanoc::Extra::VCSes
  # @see Nanoc::Extra::VCS
  class Git < Nanoc::Extra::VCS
    # @see Nanoc::Extra::VCS#add
    def add(filename)
      system('git', 'add', filename)
    end

    # @see Nanoc::Extra::VCS#remove
    def remove(filename)
      system('git', 'rm', filename)
    end

    # @see Nanoc::Extra::VCS#move
    def move(src, dst)
      system('git', 'mv', 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/git.rb
nanoc-3.7.5 lib/nanoc/extra/vcses/git.rb