module TyranoDsl::ExportGame::FileActions::FileActionsModule

Helpers to write file actions

Protected Instance Methods

create_parent_dir_if_not_exist(file_path) click to toggle source
# File lib/tyrano_dsl/export_game/file_actions/files_actions_module.rb, line 13
def create_parent_dir_if_not_exist(file_path)
  parent_dir = File.dirname(file_path)
  unless File.exists? parent_dir
    FileUtils.mkdir_p parent_dir
  end
end
log() { || ... } click to toggle source
# File lib/tyrano_dsl/export_game/file_actions/files_actions_module.rb, line 24
def log
  logger.info(self.class) {yield}
end
logger() click to toggle source
# File lib/tyrano_dsl/export_game/file_actions/files_actions_module.rb, line 20
def logger
  @logger ||= Logger.new(STDOUT)
end