class Slidr::Commands::CopyDirCommand

Public Class Methods

new(from, to) click to toggle source
# File lib/slidr/commands/copy_dir_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_dir_command.rb, line 12
def go
  FileUtils.cp_r(Dir["#{ @from }/*"], @to)
end