ryotarai/infrataster

Define servers with block

ryotarai opened this issue · 2 comments

Server.define(:app) do |server|
  server.address '192.168.10.10'
  server.vagrant
  server.from :proxy
  server.mysql({user: 'user', password: 'password'})
end

On #51 it could be as follows.

Infrataster::Server.define(:app) do |server|
    server.address = '172.16.0.0/16'
    server.vagrant = true
    server.from = :proxy
    server.mysql = {user: 'user', password: 'password'}
end

should this issue be closed?