catchup/catchup-web — pull request #27 by as-cii (2014-10-19 00:50:46+00:00)
Title: Preview

:construction: :construction: :construction: :construction: :construction: :construction:
WARNING!!! ACHTUNG!!! ATTENZIONE!!!
:construction: :construction: :construction: :construction: :construction: :construction:

Jokes aside, this code is experimental. Even though the design resembles the one which we will have on production, there are some big todos, along with totally missing features (e.g. setting the branch via UI).

As for tests, we would need to put some integration tests that directly hit Heroku. This needs quite a bit of thought and I'll address it tomorrow with a fresh mindset.

@exalted: Your feedback on the current design is very welcome. Especially, what do you think about this piece of code?

```ruby
origin = Heroku::Application.from_name("catchup-web")
destination = Heroku::Application.from_name(app_name)

destination.destroy
origin.fork_into(destination)
destination.deploy_branch(tarball)
destination.run_command("rake db:migrate")
```

Even though I am really proud of the readability this has, I would be happy to hear any (positive) critic from you.