Class: Svp::Modify
Instance Method Summary
collapse
Methods inherited from Change
#diff, #initialize, #rollback, #status
Constructor Details
This class inherits a constructor from Svp::Change
Instance Method Details
#commit ⇒ Object
17
18
19
|
# File 'lib/svp/modify.rb', line 17
def commit
FileUtils.cp(@work_file, @base_file)
end
|
#prepare_to_commit(p4) ⇒ Object
11
12
13
14
15
|
# File 'lib/svp/modify.rb', line 11
def prepare_to_commit(p4)
super
p4.sync("-k #{@work_file}")
p4.edit(@work_file)
end
|
#revert ⇒ Object
6
7
8
9
|
# File 'lib/svp/modify.rb', line 6
def revert
FileUtils.cp(@base_file, @work_file)
super
end
|