Class: Perforce2Svn::Mapping::Mkdir
- Defined in:
- lib/perforce2svn/mapping/commands.rb
Instance Attribute Summary collapse
-
#svn_path ⇒ Object
readonly
Returns the value of attribute svn_path.
Attributes inherited from Operation
Instance Method Summary collapse
- #execute!(svn_txn) ⇒ Object
-
#initialize(tok, svn_path) ⇒ Mkdir
constructor
A new instance of Mkdir.
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_path ⇒ Object (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 |