class AnjeaBackup::BackupItem
Attributes
description[RW]
name[RW]
src_dir[RW]
ssh_key[RW]
ssh_url[RW]
Public Class Methods
new(hash)
click to toggle source
# File lib/anjea_backup/backup_item.rb, line 9 def initialize hash @name = hash[:name] @description = hash['description'] @src_dir = hash['src'] if hash['host'] && hash['user'] && hash['key'] @ssh_url = "#{hash['user']}@#{hash['host']}:#{@src_dir}" @ssh_key = hash['key'] end end