Guest User

Untitled

a guest
May 26th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. def plugin_install(repository)
  2. name = File.basename repository
  3. log 'plugin', name
  4.  
  5. in_root do
  6. inside("vendor/plugins/#{name}") do
  7. run "git init -q"
  8. run "git pull --depth 1 #{repository}"
  9. run "rm -rf .git .gitignore"
  10. end
  11. end
  12. end
  13.  
  14. plugin_install '~/work/vendor-plugins/app-config-generator'
Add Comment
Please, Sign In to add comment