Class: RackspaceBackup

Inherits:
QuartzPlugin show all
Defined in:
lib/plugins/rackspace_backup.rb

Constant Summary collapse

@@version_major =
0
@@version_minor =
0
@@version_revision =
1

Instance Method Summary collapse

Methods inherited from QuartzPlugin

#get_version, #initialize, #payload, #run_result, #run_shell

Constructor Details

This class inherits a constructor from QuartzPlugin

Instance Method Details

#infoObject



12
13
14
# File 'lib/plugins/rackspace_backup.rb', line 12

def info
	{ :uid => "86a34908c51311e1a0a923db6188709b", :name => "Rackspace Backup", :version => get_version } 
end

#run(message) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/plugins/rackspace_backup.rb', line 16

def run(message)

	pl = payload(message)
	@log.debug "Pruned payload #{pl}"

	@username 				= pl['username']
	@api_key 				= pl['api_key']
	@container 				= pl['container']
	@remote_path 		 	= pl['remote_path']
	@region					= pl['region']
	@keep 					= pl['keep'].empty? ? 0 : pl['keep'].to_i
	@local_pattern 			= pl['local_pattern']
	@testing				= pl['testing']

	return transfer
end