Class: Synco::TargetScope
- Inherits:
-
ScriptScope
- Object
- ScriptScope
- Synco::TargetScope
- Defined in:
- lib/synco/scope.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#target_server ⇒ Object
readonly
Returns the value of attribute target_server.
Attributes inherited from ScriptScope
#current_server, #group, #logger, #master_server, #script
Instance Method Summary collapse
-
#initialize(script_scope, target) ⇒ TargetScope
constructor
A new instance of TargetScope.
- #run(*arguments) ⇒ Object
Methods inherited from ScriptScope
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_server ⇒ Object (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 |