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.
216 217 218 219 220 |
# File 'lib/synco/scope.rb', line 216 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.
226 227 228 |
# File 'lib/synco/scope.rb', line 226 def target_server @target_server end |
Instance Method Details
#run(*arguments) ⇒ Object
222 223 224 |
# File 'lib/synco/scope.rb', line 222 def run(*arguments) @target_server.run(*arguments) end |