Class: Perforce2Svn::Mapping::Delete

Inherits:
Command show all
Defined in:
lib/perforce2svn/mapping/commands.rb

Instance Attribute Summary collapse

Attributes inherited from Operation

#line_number

Instance Method Summary collapse

Constructor Details

#initialize(tok, svn_path) ⇒ Delete

Returns a new instance of Delete.



66
67
68
69
# File 'lib/perforce2svn/mapping/commands.rb', line 66

def initialize(tok, svn_path)
  super(tok)
  @svn_path = svn_path
end

Instance Attribute Details

#svn_pathObject (readonly)

Returns the value of attribute svn_path.



65
66
67
# File 'lib/perforce2svn/mapping/commands.rb', line 65

def svn_path
  @svn_path
end

Instance Method Details

#execute!(svn_txn) ⇒ Object



71
72
73
# File 'lib/perforce2svn/mapping/commands.rb', line 71

def execute!(svn_txn)
  svn_txn.delete(@svn_path)
end