Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. # OCTO CRAFT
  2. # Set plugins to install using craft-cli
  3. # by toggling true or false per plugin.
  4. #
  5. # Instructions:
  6. # brew tap rsanchez/homebrew-craft-cli
  7. # brew install craft-cli
  8. # rake octo:install
  9.  
  10. plugins = [
  11. {
  12. :name => 'AM Maps',
  13. :repo => 'am-impact/ammaps',
  14. :description => 'Google Maps fieldtype.',
  15. :install => false
  16. },
  17. {
  18. :name => 'Cache Monster',
  19. :repo => 'supercool/Cache-Monster',
  20. :description => 'Keeps your cache permanently warm.',
  21. :install => true
  22. },
  23. {
  24. :name => 'Control Panel Nav',
  25. :repo => 'engram-design/CPNav',
  26. :description => 'Help manage your Control Panel navigation.',
  27. :install => true
  28. },
  29. {
  30. :name => 'Essence',
  31. :repo => 'joshuabaker/craft-essence',
  32. :description => 'Extract media information from URLs using OEmbed and OpenGraph.',
  33. :install => false
  34. },
  35. {
  36. :name => 'Field Manager',
  37. :repo => 'engram-design/FieldManager',
  38. :description => 'Makes it easy to manage your fields and field groups.',
  39. :install => true
  40. },
  41. {
  42. :name => 'Inflect',
  43. :repo => 'lukeholder/craft-inflect',
  44. :description => 'Enables a several Twig filters to transform the inflection of strings.',
  45. :install => true
  46. },
  47. {
  48. :name => 'Kindling',
  49. :repo => 'imarc/craft-kindling',
  50. :description => 'Twig extension that provides some convienent logic.',
  51. :install => true
  52. },
  53. {
  54. :name => 'Many To Many',
  55. :repo => 'page-8/craft-manytomany',
  56. :description => 'Allows the management of relationships from both sides.',
  57. :install => true
  58. },
  59. {
  60. :name => 'Multi Add | Commerce',
  61. :repo => 'engram-design/MultiAdd',
  62. :description => 'Allows you to add multiple products to your cart.',
  63. :install => false
  64. },
  65. {
  66. :name => 'Navee',
  67. :repo => 'fromtheoutfit/navee',
  68. :description => 'Create and manage navigation menus.',
  69. :install => true
  70. },
  71. {
  72. :name => 'Placid',
  73. :repo => 'alecritson/Placid',
  74. :description => 'Consume REST services in your twig templates',
  75. :install => false
  76. },
  77. {
  78. :name => 'Quick Field',
  79. :repo => 'benjamminf/craft-quick-field',
  80. :description => 'Create fields on the fly while designing field layouts.',
  81. :install => true
  82. },
  83. {
  84. :name => 'Reasons',
  85. :repo => 'mmikkel/Reasons-Craft',
  86. :description => 'Add conditionals to your field layouts',
  87. :install => true
  88. },
  89. {
  90. :name => 'Retour',
  91. :repo => 'nystudio107/retour',
  92. :description => 'Retour allows you to intelligently redirect legacy URLs, so that you don\'t lose SEO value when rebuilding & restructuring a website.',
  93. :install => false
  94. },
  95. {
  96. :name => 'SEO Matic',
  97. :repo => 'nystudio107/seomatic',
  98. :description => 'A turnkey SEO implementation',
  99. :install => true
  100. },
  101. {
  102. :name => 'Similar',
  103. :repo => 'aelvan/Similar-Craft',
  104. :description => 'Find similar elements',
  105. :install => true
  106. },
  107. {
  108. :name => 'Super Table',
  109. :repo => 'engram-design/SuperTable',
  110. :description => 'Better tables.',
  111. :install => true
  112. }
  113. ]
  114.  
  115. # craft:octo
  116. namespace :octo do
  117.  
  118. desc 'Delete plugins'
  119. task :clean do
  120. command = "rm -rf craft/plugins/*"
  121. sh command
  122. end
  123.  
  124. desc 'Install preferred plugins'
  125. task :install do
  126. plugins.each do |plugin|
  127. puts ""
  128. puts "==================================="
  129. puts ""
  130. if plugin[:install]
  131. puts "Installing #{plugin[:name]}"
  132. command = "craft install:plugin #{plugin[:repo]}"
  133. sh command
  134. puts "Installed #{plugin[:name]}"
  135. else
  136. puts "Didn't install #{plugin[:name]}"
  137. end
  138. end
  139. end
  140. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement