class TyranoDsl::ExportGame::FileActions::FileCopy
Direct copy of a file from a source to a destination
Attributes
from_path[R]
@return [String]
to_path[R]
@return [String]
Public Class Methods
Public Instance Methods
run(tyrano_project_path)
click to toggle source
@param [String] tyrano_project_path @return [void]
# File lib/tyrano_dsl/export_game/file_actions/file_copy.rb, line 26 def run(tyrano_project_path) full_path = File.join(tyrano_project_path, to_path) log {"Copying file [#{from_path}] to [#{full_path}]"} create_parent_dir_if_not_exist(full_path) FileUtils.copy_file from_path, full_path end
to_s()
click to toggle source
# File lib/tyrano_dsl/export_game/file_actions/file_copy.rb, line 33 def to_s "Copy file [#{from_path}] to [#{to_path}]" end