Class: Nanoc2::Extra::VCSes::Mercurial

Inherits:
Nanoc2::Extra::VCS show all
Defined in:
lib/nanoc2/extra/vcses/mercurial.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/mercurial.rb', line 7

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

#move(src, dst) ⇒ Object



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

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

#remove(filename) ⇒ Object



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

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