Use full class paths with configurability, so additional subclassing
authorMahlon E. Smith <mahlon@martini.nu>
Mon, 12 May 2014 16:34:12 -0700
changeset 3 62196065e9ea
parent 2 5ef02faaf5a5
child 4 3972315383b3
Use full class paths with configurability, so additional subclassing (via pluggability, or manual) works as expected.
lib/symphony/tasks/ssh.rb
lib/symphony/tasks/sshscript.rb
--- a/lib/symphony/tasks/ssh.rb	Sat May 10 17:45:39 2014 -0700
+++ b/lib/symphony/tasks/ssh.rb	Mon May 12 16:34:12 2014 -0700
@@ -88,7 +88,7 @@
 	### Configurability API.
 	###
 	def self::configure( config=nil )
-		config = self.defaults.merge( config || {} )
+		config = Symphony::Task::SSH.defaults.merge( config || {} )
 		@path  = config.delete( :path )
 		@opts  = config.delete( :opts )
 		@user  = config.delete( :user )
--- a/lib/symphony/tasks/sshscript.rb	Sat May 10 17:45:39 2014 -0700
+++ b/lib/symphony/tasks/sshscript.rb	Mon May 12 16:34:12 2014 -0700
@@ -90,7 +90,7 @@
 	### Configurability API.
 	###
 	def self::configure( config=nil )
-		config = self.defaults.merge( config || {} )
+		config = Symphony::Task::SSHScript.defaults.merge( config || {} )
 		@user = config.delete( :user )
 		@key  = config.delete( :key )
 		super