Class: Props
Instance Method Summary collapse
- #get(key) ⇒ Object
-
#initialize ⇒ Props
constructor
A new instance of Props.
- #set(props) ⇒ Object
- #sshMod(lane) ⇒ Object
Constructor Details
#initialize ⇒ Props
Returns a new instance of Props.
6 7 8 |
# File 'lib/lanes/props.rb', line 6 def initialize @props = {} end |
Instance Method Details
#get(key) ⇒ Object
10 11 12 |
# File 'lib/lanes/props.rb', line 10 def get(key) @props[key] end |
#set(props) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/lanes/props.rb', line 14 def set(props) @props = props @props.delete 'aws_access_key_id' @props.delete 'aws_secret_access_key' # puts @props end |
#sshMod(lane) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/lanes/props.rb', line 22 def sshMod(lane) ssh = @props['ssh'] if ssh then mods = ssh['mods'] if mods then p = mods[lane] return p end end end |