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, #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.



190
191
192
193
194
# File 'lib/synco/scope.rb', line 190

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.



200
201
202
# File 'lib/synco/scope.rb', line 200

def target_server
  @target_server
end

Instance Method Details

#runObject



196
197
198
# File 'lib/synco/scope.rb', line 196

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