infrataster icon indicating copy to clipboard operation
infrataster copied to clipboard

Define servers with block

Open ryotarai opened this issue 10 years ago • 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

ryotarai avatar May 09 '14 15:05 ryotarai

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

otahi avatar Jan 09 '15 12:01 otahi

should this issue be closed?

ghost avatar Oct 04 '17 16:10 ghost