moonglum / exogenesis

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

Simplify #23

Closed moonglum closed 10 years ago

moonglum commented 10 years ago

I'm thinking about a big simplification. Currently there are the following tasks:

I'm thinking about reducing it to:

moonglum commented 10 years ago

What do you think, @bitboxer and @railsbros-dirk?

bitboxer commented 10 years ago

:+1:

code-later commented 10 years ago

Mmh, I don't think I like it reduced to only up and down. I would still care about a dedicated update task. And it would be nice to trigger the cleanup without updating. But I would be fine with a cleanup after each update.

moonglum commented 10 years ago

@railsbros-dirk I see the following scenarios (on the example of homebrew):

  1. You're setting up your new system – nothing is installed yet. You run rake up: Homebrew will be installed, all selected brews will be installed. It will run the cleanup afterwards.
  2. You have added a new component (for example you added ArangoDB to your brews). You run rake up: It will check if brew is installed, it is – it will update the formulas. It will go through the brews: It updates each one, except ArangoDB, which will be installed. It will run the cleanup afterwards.
  3. You have no new components, but certain components are outdated. You run rake up: It checks if brew is installed, it is – it will update the formulas. It goes through the brews and updates each one.
  4. You want to get rid of homebrew, because the new hip shit vineyard was released. You run rake down (with an option to only down homebrew, but that's another ticket). It will remove brew and all packages installed by brew.
code-later commented 10 years ago

@moonglum I understand those scenarios but I don't like it. I don't want everything to be updated all the time :-)

moonglum commented 10 years ago

@railsbros-dirk Ok, but I think that is a different kind of problem, isn't it? What you would need is:

Correct?

code-later commented 10 years ago

@moonglum Yes, that would work for me.

moonglum commented 10 years ago

Ok, then this will be done :smile_cat:

moonglum commented 10 years ago

Ok, I think the step to #15 is not far. Maybe those ticket should be combined. After this discussion I think the commands should be:

bitboxer commented 10 years ago

:+1: from me for this.

moonglum commented 10 years ago

Oh wait, I remember why I split this into two! There’s no double work in doing that in two steps. All Passengers need to be adjusted to have the three methods up, down and clean. In the Ship class and the Rakefile very simple changes need to be made.

We will then introduce the command in a second step. Probably together with the more fine grained controll of what to up and down as requested by @railsbros-dirk.

moonglum commented 10 years ago
moonglum commented 10 years ago

@bitboxer Python is the goal for this evening. Could you do the same for rbenv? I don’t have it installed and therefore can’t try out if everything works :wink:

moonglum commented 10 years ago

If you do, don’t forget your remark you made on 4dc4640d1bdc520dec031520caf859455b573395 about using rm_rf instead of doing it manually :wink:

bitboxer commented 10 years ago

Will do next week. I will have free time starting on wednesday for this :wink:

moonglum commented 10 years ago

Great :+1:

moonglum commented 10 years ago

I will assign the ticket to you when I’m done this evening.

moonglum commented 10 years ago

Handing off to @bitboxer.

moonglum commented 10 years ago

And when you’re done, you can merge #40 and then this ticket is done!

moonglum commented 10 years ago

:dancers:

bitboxer commented 10 years ago

Si señor!

Am Freitag, 21. Februar 2014 schrieb Lucas Dohmen :

[image: :dancers:]

Reply to this email directly or view it on GitHubhttps://github.com/moonglum/exogenesis/issues/23#issuecomment-35769964 .

moonglum commented 10 years ago

Done!