class Slidr::Commands::CopyFileCommand

Public Class Methods

new(from, to) click to toggle source
# File lib/slidr/commands/copy_file_command.rb, line 7
def initialize(from, to)
  @from = from
  @to = to
end

Public Instance Methods

go() click to toggle source
# File lib/slidr/commands/copy_file_command.rb, line 12
def go
  FileUtils.cp(@from, @to)
end