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, #master_server, #script
Instance Method Summary collapse
-
#initialize(script_scope, target) ⇒ TargetScope
constructor
A new instance of TargetScope.
- #run ⇒ Object
Methods inherited from ScriptScope
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_server ⇒ Object (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
#run ⇒ Object
196 197 198 |
# File 'lib/synco/scope.rb', line 196 def run(...) @target_server.run(...) end |