lib/symphony/tasks/sshscript.rb
changeset 4 3972315383b3
parent 3 62196065e9ea
child 11 ffa70066522c
equal deleted inserted replaced
3:62196065e9ea 4:3972315383b3
   106 		port       = payload[ 'port' ]    || 22
   106 		port       = payload[ 'port' ]    || 22
   107 		user       = payload[ 'user' ]    || Symphony::Task::SSHScript.user
   107 		user       = payload[ 'user' ]    || Symphony::Task::SSHScript.user
   108 		key        = payload[ 'key'  ]    || Symphony::Task::SSHScript.key
   108 		key        = payload[ 'key'  ]    || Symphony::Task::SSHScript.key
   109 		nocleanup  = payload[ 'nocleanup' ]
   109 		nocleanup  = payload[ 'nocleanup' ]
   110 
   110 
   111 		raise ArgumentError, "Missing required option 'command'" unless template
   111 		raise ArgumentError, "Missing required option 'template'" unless template
   112 		raise ArgumentError, "Missing required option 'host'"    unless payload[ 'host' ]
   112 		raise ArgumentError, "Missing required option 'host'"    unless payload[ 'host' ]
   113 
   113 
   114 		remote_filename = self.make_remote_filename( template )
   114 		remote_filename = self.make_remote_filename( template )
   115 		source = self.generate_script( template, attributes )
   115 		source = self.generate_script( template, attributes )
   116 
   116