UniversityRadioYork / ury-rapid

(obsolete) Radio API Daemon
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Cleanup launcher #29

Closed MattWindsor91 closed 10 years ago

MattWindsor91 commented 10 years ago

This is mainly a refactoring branch, but there is one breaking change (from dee09a9). You will need to change this:

driver :foo, Bar do
  # ...
end

server :baz, Shpee do
  # ...
end

to this:

drivers do
  configure :foo, Bar do
    # ...
  end
  enable :foo
end

servers do
  configure :baz, Shpee do
    # ...
  end
  enable :baz
end

The enable :foo is new in this pull request, and reflects that you can now configure modules that aren't enabled at run-time. (This currently doesn't really have much of a use, but it will do in the future with hot-swappable modules.)

This should help group things together, make the similarities between server and driver config more obvious, and it reflects the internal structure in which the drivers/servers are now stored.

wlcx commented 10 years ago

image