Class: Slidr::Commands::CopyFileCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Slidr::Commands::CopyFileCommand
- Defined in:
- lib/slidr/commands/copy_file_command.rb
Instance Method Summary collapse
- #go ⇒ Object
-
#initialize(from, to) ⇒ CopyFileCommand
constructor
A new instance of CopyFileCommand.
Methods inherited from BaseCommand
Constructor Details
#initialize(from, to) ⇒ CopyFileCommand
Returns a new instance of CopyFileCommand.
7 8 9 10 |
# File 'lib/slidr/commands/copy_file_command.rb', line 7 def initialize(from, to) @from = from @to = to end |
Instance Method Details
#go ⇒ Object
12 13 14 |
# File 'lib/slidr/commands/copy_file_command.rb', line 12 def go FileUtils.cp(@from, @to) end |