Class: Mystro::Dsl::Balancer
- Defined in:
- lib/mystro/dsl/balancer.rb
Instance Method Summary collapse
Instance Method Details
#actions ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/mystro/dsl/balancer.rb', line 7 def actions hash = to_hash action = Mystro::Cloud::Action.new('Mystro::Cloud::Balancer', :create) action.data = { name: hash[:name], primary: hash[:primary], health: hash[:health], listeners: hash[:listener], } [action] end |