Sha256: db7f12c48222207fe5c729c7374769ea050147f49c50729f4bb68ad3bb4dd5da
Contents?: true
Size: 553 Bytes
Versions: 8
Compression:
Stored size: 553 Bytes
Contents
## Description `get` read param value from configuration file. ## Usage ```ruby get(:param1) ``` ## Example Suppose we have this `config.yaml` content: ```yaml --- :global: :host1_username: root :host1_password: secret :cases: - :tt_members: Obiwan :host1_ip: 192.168.1.201 :host1_hostname: jedis :username: obiwan ``` Then: * `get(:username)` returns `obiwan`. * `get(:host1_username)`, returns `root`. We also can create new temporal params: ```ruby set(:new_param, "Hello") var = get(:new_param) ``` So `var` value will be "Hello".
Version data entries
8 entries across 8 versions & 1 rubygems