Class: Synco::TargetScope

Inherits:
ScriptScope show all
Defined in:
lib/synco/scope.rb

Direct Known Subclasses

DirectoryScope

Instance Attribute Summary collapse

Attributes inherited from ScriptScope

#current_server, #group, #logger, #master_server, #script

Instance Method Summary collapse

Methods inherited from ScriptScope

#call, #method

Constructor Details

#initialize(script_scope, target) ⇒ TargetScope

Returns a new instance of TargetScope.



225
226
227
228
229
# File 'lib/synco/scope.rb', line 225

def initialize(script_scope, target)
	super(script_scope)
	
	@target_server = ServerScope.new(target, script_scope, script_scope.current_server)
end

Instance Attribute Details

#target_serverObject (readonly)

Returns the value of attribute target_server.



235
236
237
# File 'lib/synco/scope.rb', line 235

def target_server
  @target_server
end

Instance Method Details

#run(*arguments) ⇒ Object



231
232
233
# File 'lib/synco/scope.rb', line 231

def run(*arguments)
	@target_server.run(*arguments)
end