Class: TurboRex::MSRPC::RPCFinder::ImageFinder::AutoFindConf
- Inherits:
-
Object
- Object
- TurboRex::MSRPC::RPCFinder::ImageFinder::AutoFindConf
- Defined in:
- lib/turborex/msrpc/rpcfinder.rb
Instance Method Summary collapse
- #build ⇒ Object
- #exclude_client ⇒ Object (also: #only_server)
- #find_client_routines ⇒ Object
-
#initialize ⇒ AutoFindConf
constructor
A new instance of AutoFindConf.
- #only_client ⇒ Object
Constructor Details
#initialize ⇒ AutoFindConf
Returns a new instance of AutoFindConf.
135 136 137 138 139 140 |
# File 'lib/turborex/msrpc/rpcfinder.rb', line 135 def initialize @options = { include_client: true, find_client_routines: false } end |
Instance Method Details
#build ⇒ Object
142 143 144 |
# File 'lib/turborex/msrpc/rpcfinder.rb', line 142 def build @options end |
#exclude_client ⇒ Object Also known as: only_server
146 147 148 |
# File 'lib/turborex/msrpc/rpcfinder.rb', line 146 def exclude_client @options[:include_client] = false end |
#find_client_routines ⇒ Object
154 155 156 |
# File 'lib/turborex/msrpc/rpcfinder.rb', line 154 def find_client_routines @options[:find_client_routines] = true if @options[:include_client] end |
#only_client ⇒ Object
150 151 152 |
# File 'lib/turborex/msrpc/rpcfinder.rb', line 150 def only_client @options[:only_client] = true end |