Class: Perforce2Svn::Mapping::Copy
- Defined in:
- lib/perforce2svn/mapping/commands.rb
Instance Attribute Summary collapse
-
#svn_from ⇒ Object
readonly
Returns the value of attribute svn_from.
-
#svn_to ⇒ Object
readonly
Returns the value of attribute svn_to.
Attributes inherited from Operation
Instance Method Summary collapse
- #execute!(svn_txn) ⇒ Object
-
#initialize(tok, svn_from, svn_to) ⇒ Copy
constructor
A new instance of Copy.
Constructor Details
#initialize(tok, svn_from, svn_to) ⇒ Copy
Returns a new instance of Copy.
13 14 15 16 17 |
# File 'lib/perforce2svn/mapping/commands.rb', line 13 def initialize(tok,svn_from, svn_to) super(tok) @svn_from = svn_from @svn_to = svn_to end |
Instance Attribute Details
#svn_from ⇒ Object (readonly)
Returns the value of attribute svn_from.
12 13 14 |
# File 'lib/perforce2svn/mapping/commands.rb', line 12 def svn_from @svn_from end |
#svn_to ⇒ Object (readonly)
Returns the value of attribute svn_to.
12 13 14 |
# File 'lib/perforce2svn/mapping/commands.rb', line 12 def svn_to @svn_to end |
Instance Method Details
#execute!(svn_txn) ⇒ Object
19 20 21 |
# File 'lib/perforce2svn/mapping/commands.rb', line 19 def execute!(svn_txn) svn_txn.copy(@svn_from, @svn_to) end |