moonglum / exogenesis

Build your dotfile installer, updater and teardown
MIT License
19 stars 8 forks source link

exogenesis command #15

Open moonglum opened 11 years ago

moonglum commented 11 years ago

@railsbros-dirk talked about his idea to create a thor-powered exogenesis command. And I thought about how one could implement this. So I came up with the following:

An example for a YML file:

rvm:
  rubies:
    - ruby-1.9.3
    - ruby-2.0.0
dotfiles:
  path: "~/Code/dotfiles/tilde"

This would initialize the class RVM with the argument RVM.new(["ruby-1.9.3", "ruby-2.0.0"]) and the dotfiles class with Dotfile.new("~/Code/dotfiles/tilde"). The names for the parameters are just for the convenience of the user and are not used in any way. Once Apple bundles Ruby 2.0 (In 2043 approx.) we can then use Keyword-arguments for this ^^

The command can be called like this:

exogenesis update
# or
exogenesis --file exogenesis.yml install

What do you think?

moonglum commented 11 years ago

It's also imaginable that the initialize method always takes a hash, which is even simpler to implement. Then the names wouldn't go to waste.

bitboxer commented 10 years ago

Really looking forward to this. The Rakefile is the No.1 thing I want to have removed from my dotfiles :wink:

moonglum commented 10 years ago

Yep, that’s going to make things simpler :wink:

moonglum commented 10 years ago

I will adjust this ticket as soon as #23 is done.