Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. myapp = :my_application
  2. apps_that_depend_on_me =
  3. for {app,_,_} <- Application.loaded_applications(),
  4. deps = Application.spec(app)[:applications],
  5. myapp in deps do
  6. app
  7. end
  8.  
  9. IO.inspect(apps_that_depend_on_me)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement