Method: TddDeploy::Capfile#migration_host_list
- Defined in:
- lib/tdd_deploy/capfile.rb
#migration_host_list ⇒ Object
returns list of host strings which are in the ‘db’ role and for which ‘primary’ is true
25 26 27 |
# File 'lib/tdd_deploy/capfile.rb', line 25 def migration_host_list servers(:db).select { |srv| srv.[:primary] == true }.map { |x| x.to_s } end |