Class: Perforce2Svn::Mapping::Mkdir

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) ⇒ Mkdir

Returns a new instance of Mkdir.



26
27
28
29
# File 'lib/perforce2svn/mapping/commands.rb', line 26

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.



25
26
27
# File 'lib/perforce2svn/mapping/commands.rb', line 25

def svn_path
  @svn_path
end

Instance Method Details

#execute!(svn_txn) ⇒ Object



31
32
33
# File 'lib/perforce2svn/mapping/commands.rb', line 31

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