Class: Nanoc3::Extra::VCSes::Git

Inherits:
Nanoc3::Extra::VCS show all
Defined in:
lib/nanoc3/extra/vcses/git.rb

Overview

See Also:

Instance Method Summary collapse

Methods included from PluginRegistry::PluginMethods

#identifier, #identifiers, #named, #register

Instance Method Details

#add(filename) ⇒ Object



9
10
11
# File 'lib/nanoc3/extra/vcses/git.rb', line 9

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

#move(src, dst) ⇒ Object



19
20
21
# File 'lib/nanoc3/extra/vcses/git.rb', line 19

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

#remove(filename) ⇒ Object



14
15
16
# File 'lib/nanoc3/extra/vcses/git.rb', line 14

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