Class: Nanoc2::Extra::VCSes::Git

Inherits:
Nanoc2::Extra::VCS show all
Defined in:
lib/nanoc2/extra/vcses/git.rb

Constant Summary

Constants inherited from Plugin

Plugin::MAP

Instance Method Summary collapse

Methods inherited from Plugin

identifier, identifiers, named, register

Instance Method Details

#add(filename) ⇒ Object



7
8
9
# File 'lib/nanoc2/extra/vcses/git.rb', line 7

def add(filename)
  system('git', 'add', filename)
end

#move(src, dst) ⇒ Object



15
16
17
# File 'lib/nanoc2/extra/vcses/git.rb', line 15

def move(src, dst)
  system('git', 'mv', src, dst)
end

#remove(filename) ⇒ Object



11
12
13
# File 'lib/nanoc2/extra/vcses/git.rb', line 11

def remove(filename)
  system('git', 'rm', filename)
end