smartcloud 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. checksums.yaml +4 -4
  2. data/{lib/smartcloud/grids/grid-elasticsearch/.keep → CHANGELOG.rdoc} +0 -0
  3. data/README.rdoc +9 -0
  4. data/bin/smartcloud +17 -17
  5. data/lib/smart_cloud.rb +24 -0
  6. data/lib/{smartcloud → smart_cloud}/apps/app.rb +22 -22
  7. data/lib/{smartcloud → smart_cloud}/apps/rails.rb +8 -8
  8. data/lib/{smartcloud → smart_cloud}/base.rb +3 -3
  9. data/lib/smart_cloud/boot.rb +24 -0
  10. data/lib/{smartcloud → smart_cloud}/buildpacker.rb +4 -4
  11. data/lib/{smartcloud → smart_cloud}/credentials.rb +6 -23
  12. data/lib/{smartcloud → smart_cloud}/docker.rb +9 -11
  13. data/lib/{smartcloud → smart_cloud}/engine.rb +13 -13
  14. data/lib/{smartcloud → smart_cloud}/engine/Dockerfile +2 -2
  15. data/lib/{smartcloud → smart_cloud}/engine/buildpacks/rails/Dockerfile +0 -0
  16. data/lib/smart_cloud/gem_version.rb +17 -0
  17. data/lib/{smartcloud → smart_cloud}/grids/nextcloud.rb +17 -17
  18. data/lib/{smartcloud/grids/grid-minio → smart_cloud/grids/nextcloud}/.keep +0 -0
  19. data/lib/{smartcloud → smart_cloud}/grids/redmine.rb +18 -18
  20. data/lib/{smartcloud/grids/grid-mysql/docker-entrypoint-initdb.d → smart_cloud/grids/redmine}/.keep +0 -0
  21. data/lib/{smartcloud → smart_cloud}/logger.rb +4 -4
  22. data/lib/{smartcloud → smart_cloud}/machine.rb +80 -80
  23. data/lib/{smartcloud → smart_cloud}/ssh.rb +6 -6
  24. data/lib/{smartcloud/grids/grid-nextcloud → smart_cloud/templates/dotsmartcloud/apps/containers}/.keep +0 -0
  25. data/lib/{smartcloud/grids/grid-nginx → smart_cloud/templates/dotsmartcloud/apps/repositories}/.keep +0 -0
  26. data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/bin/smartcloud.sh +0 -0
  27. data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/config/environment.rb +5 -5
  28. data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/config/users.yml +0 -0
  29. data/lib/{smartcloud/grids/grid-redis → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html}/.keep +0 -0
  30. data/lib/{smartcloud/grids/grid-redmine → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html/apps}/.keep +0 -0
  31. data/lib/{smartcloud/grids/grid-solr → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html}/config/.keep +0 -0
  32. data/lib/{smartcloud/grids/grid-solr/config/lib → smart_cloud/templates/dotsmartcloud/grids/redmine/files}/.keep +0 -0
  33. data/lib/{smartcloud/grids/grid-solr/docker-entrypoint-initdb.d → smart_cloud/templates/dotsmartcloud/tmp}/.keep +0 -0
  34. data/lib/{smartcloud → smart_cloud}/user.rb +6 -6
  35. data/lib/smart_cloud/version.rb +10 -0
  36. metadata +48 -241
  37. data/README.md +0 -81
  38. data/bin/buildpacker +0 -8
  39. data/bin/prereceiver +0 -8
  40. data/lib/smartcloud.rb +0 -24
  41. data/lib/smartcloud/boot.rb +0 -30
  42. data/lib/smartcloud/grids/elasticsearch.rb +0 -90
  43. data/lib/smartcloud/grids/grid-prereceiver/Dockerfile +0 -18
  44. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/APKBUILD +0 -49
  45. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.confd +0 -6
  46. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd +0 -43
  47. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.pre-install +0 -7
  48. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/APKINDEX.tar.gz +0 -0
  49. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-1.1.1-r4.apk +0 -0
  50. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-doc-1.1.1-r4.apk +0 -0
  51. data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-openrc-1.1.1-r4.apk +0 -0
  52. data/lib/smartcloud/grids/grid-solr/config/README.txt +0 -77
  53. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_ca.txt +0 -8
  54. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_fr.txt +0 -15
  55. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_ga.txt +0 -5
  56. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_it.txt +0 -23
  57. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/hyphenations_ga.txt +0 -5
  58. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stemdict_nl.txt +0 -6
  59. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stoptags_ja.txt +0 -420
  60. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ar.txt +0 -125
  61. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_bg.txt +0 -193
  62. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ca.txt +0 -220
  63. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_cz.txt +0 -172
  64. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_da.txt +0 -110
  65. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_de.txt +0 -294
  66. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_el.txt +0 -78
  67. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_en.txt +0 -54
  68. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_es.txt +0 -356
  69. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_eu.txt +0 -99
  70. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fa.txt +0 -313
  71. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fi.txt +0 -97
  72. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fr.txt +0 -186
  73. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ga.txt +0 -110
  74. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_gl.txt +0 -161
  75. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hi.txt +0 -235
  76. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hu.txt +0 -211
  77. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hy.txt +0 -46
  78. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_id.txt +0 -359
  79. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_it.txt +0 -303
  80. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ja.txt +0 -127
  81. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_lv.txt +0 -172
  82. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_nl.txt +0 -119
  83. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_no.txt +0 -194
  84. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_pt.txt +0 -253
  85. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ro.txt +0 -233
  86. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ru.txt +0 -243
  87. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_sv.txt +0 -133
  88. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_th.txt +0 -119
  89. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_tr.txt +0 -212
  90. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/userdict_ja.txt +0 -29
  91. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/managed-schema +0 -1007
  92. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/params.json +0 -20
  93. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/protwords.txt +0 -21
  94. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/solrconfig.xml +0 -1355
  95. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/stopwords.txt +0 -14
  96. data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/synonyms.txt +0 -29
  97. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_rest_managed.json +0 -1
  98. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_stopwords_english.json +0 -38
  99. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_synonyms_english.json +0 -11
  100. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/README.txt +0 -11
  101. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/kmeans-attributes.xml +0 -19
  102. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/lingo-attributes.xml +0 -24
  103. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/stc-attributes.xml +0 -19
  104. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/currency.xml +0 -67
  105. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/elevate.xml +0 -42
  106. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ca.txt +0 -8
  107. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_fr.txt +0 -15
  108. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ga.txt +0 -5
  109. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_it.txt +0 -23
  110. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/hyphenations_ga.txt +0 -5
  111. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stemdict_nl.txt +0 -6
  112. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stoptags_ja.txt +0 -420
  113. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ar.txt +0 -125
  114. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_bg.txt +0 -193
  115. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ca.txt +0 -220
  116. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ckb.txt +0 -136
  117. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_cz.txt +0 -172
  118. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_da.txt +0 -110
  119. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_de.txt +0 -294
  120. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_el.txt +0 -78
  121. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_en.txt +0 -54
  122. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_es.txt +0 -356
  123. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_eu.txt +0 -99
  124. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fa.txt +0 -313
  125. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fi.txt +0 -97
  126. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fr.txt +0 -186
  127. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ga.txt +0 -110
  128. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_gl.txt +0 -161
  129. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hi.txt +0 -235
  130. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hu.txt +0 -211
  131. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hy.txt +0 -46
  132. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_id.txt +0 -359
  133. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_it.txt +0 -303
  134. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ja.txt +0 -127
  135. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_lv.txt +0 -172
  136. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_nl.txt +0 -119
  137. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_no.txt +0 -194
  138. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_pt.txt +0 -253
  139. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ro.txt +0 -233
  140. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ru.txt +0 -243
  141. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_sv.txt +0 -133
  142. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_th.txt +0 -119
  143. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_tr.txt +0 -212
  144. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/userdict_ja.txt +0 -29
  145. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/managed-schema +0 -1187
  146. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/mapping-FoldToASCII.txt +0 -3813
  147. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/mapping-ISOLatin1Accent.txt +0 -246
  148. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/params.json +0 -11
  149. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/protwords.txt +0 -21
  150. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/solrconfig.xml +0 -1616
  151. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/spellings.txt +0 -2
  152. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/stopwords.txt +0 -14
  153. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/synonyms.txt +0 -29
  154. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/update-script.js +0 -53
  155. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/README.txt +0 -101
  156. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/VM_global_library.vm +0 -186
  157. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/browse.vm +0 -33
  158. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster.vm +0 -19
  159. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster_results.vm +0 -31
  160. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/debug.vm +0 -28
  161. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/did_you_mean.vm +0 -11
  162. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/error.vm +0 -11
  163. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_fields.vm +0 -24
  164. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_pivot.vm +0 -12
  165. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_queries.vm +0 -12
  166. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_ranges.vm +0 -23
  167. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facets.vm +0 -10
  168. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/footer.vm +0 -43
  169. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/head.vm +0 -37
  170. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/header.vm +0 -7
  171. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit.vm +0 -25
  172. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_grouped.vm +0 -43
  173. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_plain.vm +0 -25
  174. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/join_doc.vm +0 -20
  175. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.css +0 -48
  176. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.js +0 -763
  177. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/layout.vm +0 -24
  178. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/main.css +0 -231
  179. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/mime_type_lists.vm +0 -68
  180. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_bottom.vm +0 -22
  181. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_top.vm +0 -29
  182. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/product_doc.vm +0 -32
  183. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query.vm +0 -42
  184. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_form.vm +0 -64
  185. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_group.vm +0 -43
  186. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_spatial.vm +0 -75
  187. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/results_list.vm +0 -22
  188. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/richtext_doc.vm +0 -153
  189. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/suggest.vm +0 -8
  190. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/tabs.vm +0 -50
  191. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example.xsl +0 -132
  192. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example_atom.xsl +0 -67
  193. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example_rss.xsl +0 -66
  194. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/luke.xsl +0 -337
  195. data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/updateXml.xsl +0 -70
  196. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/_rest_managed.json +0 -1
  197. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/admin-extra.html +0 -31
  198. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/currency.xml +0 -67
  199. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/elevate.xml +0 -36
  200. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/lang/stopwords_en.txt +0 -54
  201. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/mapping-ISOLatin1Accent.txt +0 -246
  202. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/protwords.txt +0 -21
  203. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/schema.xml +0 -278
  204. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/scripts.conf +0 -24
  205. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/solrconfig.xml +0 -632
  206. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/spellings.txt +0 -2
  207. data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/synonyms.txt +0 -29
  208. data/lib/smartcloud/grids/grid-solr/config/solr.xml +0 -53
  209. data/lib/smartcloud/grids/grid-solr/config/zoo.cfg +0 -31
  210. data/lib/smartcloud/grids/grid-solr/sunspot/conf/schema.xml +0 -278
  211. data/lib/smartcloud/grids/grid-solr/sunspot/conf/solrconfig.xml +0 -632
  212. data/lib/smartcloud/grids/minio.rb +0 -77
  213. data/lib/smartcloud/grids/mysql.rb +0 -66
  214. data/lib/smartcloud/grids/nginx.rb +0 -137
  215. data/lib/smartcloud/grids/prereceiver.rb +0 -134
  216. data/lib/smartcloud/grids/redis.rb +0 -58
  217. data/lib/smartcloud/grids/solr.rb +0 -99
  218. data/lib/smartcloud/templates/dotsmartcloud/apps/containers/.keep +0 -0
  219. data/lib/smartcloud/templates/dotsmartcloud/apps/repositories/.keep +0 -0
  220. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-elasticsearch/data/.keep +0 -0
  221. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-elasticsearch/logs/.keep +0 -0
  222. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-minio/data/.keep +0 -0
  223. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-mysql/data/.keep +0 -0
  224. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/.keep +0 -0
  225. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/apps/.keep +0 -0
  226. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/config/.keep +0 -0
  227. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/certificates/.keep +0 -0
  228. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/fastcgi.conf +0 -11
  229. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/htpasswd/.keep +0 -0
  230. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/nginx.tmpl +0 -373
  231. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive +0 -17
  232. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-redis/data/.keep +0 -0
  233. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-redmine/files/.keep +0 -0
  234. data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/solr/.keep +0 -0
  235. data/lib/smartcloud/templates/dotsmartcloud/tmp/.keep +0 -0
  236. data/lib/smartcloud/version.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f8b33a78533be526973b7a6cd9b0908065ff243bd81f9f187e7b47ef3206b3f
4
- data.tar.gz: b0c32955987e7dd6871b4d3ba19079ba89b900b69f6cb267554737447e4e32f0
3
+ metadata.gz: edbc1d3288fe7a3f2a940daa43460e49db5d70266470d19f69ca4e3f1e5a693e
4
+ data.tar.gz: 11b2a8973b2eb7d3c97120dbc3e710258281a6c84c726b95f75849a5753805ac
5
5
  SHA512:
6
- metadata.gz: 194c49f31b2732a5f80d29965608346b30411abfeceb51ae1a35c2cc732c81f49d8efbfc13182456af2f197246b856216c19a9d321a26d3074efbd4d615c9e26
7
- data.tar.gz: c351811641f14509b224801c4b9d1f38eb62c4772bce7c386f662925494d2822d644dae5ece3efbfc38ce7139decf1c01cb00b80e0bd664ba6f1d052985a17ee
6
+ metadata.gz: 420636be131c9d7ed87fce9dbcf6832f7f6f3adf8525e58fb32050c50c6262df0b84cd7f299eb67fd13a4b01b3d2c23851e56aaae9e78631dbaaefcb82dcb8d2
7
+ data.tar.gz: 26423c0dee22ed511466700cf3a579111fd514d0f5de88cede44f287c6186cab1c613676aaebc84c8952b430fb1627166dc96c8f41134a8e67bcb603fe615f32
@@ -0,0 +1,9 @@
1
+ = Welcome to SmartCloud
2
+
3
+ == What's SmartCloud?
4
+
5
+ Wait for it :)
6
+
7
+ == License
8
+
9
+ SmartCloud is released under the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,51 +1,51 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'smartcloud'
3
+ require 'smart_cloud'
4
4
 
5
5
  command = ARGV.shift
6
6
 
7
7
  if command == '--version'
8
- puts "Smartcloud #{Smartcloud.version}"
8
+ puts "SmartCloud #{SmartCloud.version}"
9
9
  return
10
10
  end
11
11
 
12
- if Smartcloud::Machine.smartcloud_local?
12
+ if SmartCloud::Machine.local?
13
13
  if command == 'start'
14
- machine = Smartcloud::Machine.new
14
+ machine = SmartCloud::Machine.new
15
15
  machine.start
16
16
  elsif command == 'stop'
17
- machine = Smartcloud::Machine.new
17
+ machine = SmartCloud::Machine.new
18
18
  machine.stop
19
19
  elsif command == 'ssh'
20
- machine = Smartcloud::Machine.new
20
+ machine = SmartCloud::Machine.new
21
21
  machine.ssh
22
22
  elsif command == 'sync'
23
- machine = Smartcloud::Machine.new
23
+ machine = SmartCloud::Machine.new
24
24
  machine.sync
25
25
  elsif command == 'grid'
26
- machine = Smartcloud::Machine.new
26
+ machine = SmartCloud::Machine.new
27
27
  machine.grid ARGV
28
28
  elsif command == 'app'
29
- machine = Smartcloud::Machine.new
29
+ machine = SmartCloud::Machine.new
30
30
  machine.app ARGV
31
31
  elsif command == 'ps'
32
- ssh = Smartcloud::SSH.new
32
+ ssh = SmartCloud::SSH.new
33
33
  ssh.run "smartcloud ps #{ARGV.join(' ')}"
34
34
  elsif command == 'logs'
35
- ssh = Smartcloud::SSH.new
35
+ ssh = SmartCloud::SSH.new
36
36
  ssh.run "smartcloud logs #{ARGV.join(' ')}"
37
37
  elsif command == 'credentials:edit'
38
- credentials = Smartcloud::Credentials.new
38
+ credentials = SmartCloud::Credentials.new
39
39
  credentials.edit
40
40
  else
41
41
  puts "Specify a valid local command to execute."
42
42
  end
43
- elsif Smartcloud::Machine.smartcloud_server?
43
+ elsif SmartCloud::Machine.remote?
44
44
  if command == 'run'
45
- machine = Smartcloud::Machine.new
45
+ machine = SmartCloud::Machine.new
46
46
  machine.run ARGV
47
47
  elsif command == 'buildpacker'
48
- buildpacker = Smartcloud::Buildpacker.new
48
+ buildpacker = SmartCloud::Buildpacker.new
49
49
  action = ARGV.shift
50
50
  if action == "install"
51
51
  buildpacker.install
@@ -53,7 +53,7 @@ elsif Smartcloud::Machine.smartcloud_server?
53
53
  buildpacker.uninstall
54
54
  end
55
55
  elsif command == 'prereceiver'
56
- prereceiver = Smartcloud::Grids::Prereceiver.new
56
+ prereceiver = SmartCloud::Grids::Prereceiver.new
57
57
  action = ARGV.shift
58
58
  if action == "install"
59
59
  prereceiver.install
@@ -72,7 +72,7 @@ elsif Smartcloud::Machine.smartcloud_server?
72
72
  else
73
73
  if command == 'new'
74
74
  raise "Please specify a machine name" if ARGV.empty?
75
- machine = Smartcloud::Machine.new
75
+ machine = SmartCloud::Machine.new
76
76
  machine.create ARGV
77
77
  else
78
78
  puts "Specify a valid smartcloud command to execute. Are you in the correct directory to run this command?"
@@ -0,0 +1,24 @@
1
+ require "ostruct"
2
+ require "yaml"
3
+
4
+ # The main SmartCloud driver
5
+ module SmartCloud
6
+ def self.config
7
+ @@config ||= OpenStruct.new
8
+ end
9
+
10
+ def self.credentials
11
+ @@credentials ||= OpenStruct.new(SmartCloud::Credentials.new.config)
12
+ end
13
+ end
14
+
15
+ require 'smart_cloud/version'
16
+
17
+ SmartCloud.config.root_path = File.expand_path('../..', __FILE__)
18
+ SmartCloud.config.user_home_path = File.expand_path('~')
19
+ if File.exist?("#{SmartCloud.config.user_home_path}/.smartcloud/config/environment.rb")
20
+ require "#{SmartCloud.config.user_home_path}/.smartcloud/config/environment"
21
+ end
22
+
23
+ require 'smart_cloud/base'
24
+ require 'smart_cloud/boot'
@@ -1,14 +1,14 @@
1
- # The main Smartcloud App driver
2
- module Smartcloud
1
+ # The main SmartCloud App driver
2
+ module SmartCloud
3
3
  module Apps
4
- class App < Smartcloud::Base
4
+ class App < SmartCloud::Base
5
5
  def initialize
6
6
  end
7
7
 
8
8
  # Creating App!
9
9
  #
10
10
  # Example:
11
- # >> Smartcloud::Apps::Rails.create
11
+ # >> SmartCloud::Apps::Rails.create
12
12
  # => Creation Complete
13
13
  #
14
14
  # Arguments:
@@ -21,9 +21,9 @@ module Smartcloud
21
21
 
22
22
  raise "Please provide appname and username" if appname.empty? || username.empty?
23
23
 
24
- if Smartcloud::Docker.running?
25
- repository_path = "#{Smartcloud.config.user_home_path}/.smartcloud/apps/repositories/#{appname}.git"
26
- container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/apps/containers/#{appname}"
24
+ if SmartCloud::Docker.running?
25
+ repository_path = "#{SmartCloud.config.user_home_path}/.smartcloud/apps/repositories/#{appname}.git"
26
+ container_path = "#{SmartCloud.config.user_home_path}/.smartcloud/apps/containers/#{appname}"
27
27
  print "-----> Creating Application ... "
28
28
 
29
29
  # Checking if app with given name already exists
@@ -39,14 +39,14 @@ module Smartcloud
39
39
  # Initializing bare repo and pre-receive
40
40
  Dir.chdir(repository_path) do
41
41
  %x[git init --bare]
42
- %x[chmod +x #{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-prereceiver/pre-receive]
43
- %x[ln -s #{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-prereceiver/pre-receive #{repository_path}/hooks/pre-receive]
42
+ %x[chmod +x #{SmartCloud.config.user_home_path}/.smartcloud/grids/prereceiver/pre-receive]
43
+ %x[ln -s #{SmartCloud.config.user_home_path}/.smartcloud/grids/prereceiver/pre-receive #{repository_path}/hooks/pre-receive]
44
44
  puts "done"
45
45
  end
46
46
 
47
47
  # Creating Environment File
48
- if File.exist?("#{Smartcloud.config.user_home_path}/.smartcloud/config/environment.rb")
49
- require "#{Smartcloud.config.user_home_path}/.smartcloud/config/environment"
48
+ if File.exist?("#{SmartCloud.config.user_home_path}/.smartcloud/config/environment.rb")
49
+ require "#{SmartCloud.config.user_home_path}/.smartcloud/config/environment"
50
50
  end
51
51
  unless File.exist? "#{container_path}/env"
52
52
  print "-----> Creating App Environment ... "
@@ -56,9 +56,9 @@ module Smartcloud
56
56
  KEEP_RELEASES=3
57
57
 
58
58
  ## Docker
59
- VIRTUAL_HOST=#{appname}.#{Smartcloud.config.apps_domain}
60
- LETSENCRYPT_HOST=#{appname}.#{Smartcloud.config.apps_domain}
61
- LETSENCRYPT_EMAIL=#{Smartcloud.config.sysadmin_email}
59
+ VIRTUAL_HOST=#{appname}.#{SmartCloud.config.apps_domain}
60
+ LETSENCRYPT_HOST=#{appname}.#{SmartCloud.config.apps_domain}
61
+ LETSENCRYPT_EMAIL=#{SmartCloud.config.sysadmin_email}
62
62
  LETSENCRYPT_TEST=false
63
63
  HEREDOC
64
64
  puts "done" if system("echo '#{page}' > #{container_path}/env")
@@ -72,14 +72,14 @@ module Smartcloud
72
72
 
73
73
  raise "Please provide appname" if appname.empty?
74
74
 
75
- if Smartcloud::Docker.running?
75
+ if SmartCloud::Docker.running?
76
76
  # Stopping & Removing old container
77
77
  self.stop(appname)
78
78
 
79
79
  # Destroying Directories
80
80
  print "-----> Deleting App #{appname} ... "
81
- repository_path = "#{Smartcloud.config.user_home_path}/.smartcloud/apps/repositories/#{appname}.git"
82
- container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/apps/containers/#{appname}"
81
+ repository_path = "#{SmartCloud.config.user_home_path}/.smartcloud/apps/repositories/#{appname}.git"
82
+ container_path = "#{SmartCloud.config.user_home_path}/.smartcloud/apps/containers/#{appname}"
83
83
  FileUtils.rm_r(repository_path)
84
84
  FileUtils.rm_r(container_path)
85
85
  puts "done"
@@ -100,8 +100,8 @@ module Smartcloud
100
100
  "\t\t\t\t#{severity_text[severity]} #{message}\n"
101
101
  end
102
102
 
103
- if Smartcloud::Docker.running?
104
- container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/apps/containers/#{appname}"
103
+ if SmartCloud::Docker.running?
104
+ container_path = "#{SmartCloud.config.user_home_path}/.smartcloud/apps/containers/#{appname}"
105
105
 
106
106
  Dir.chdir("#{container_path}/releases") do
107
107
  # Getting App Version
@@ -113,7 +113,7 @@ module Smartcloud
113
113
 
114
114
  logger.info "Launching Application ..."
115
115
 
116
- app = Smartcloud::Apps::Rails.new
116
+ app = SmartCloud::Apps::Rails.new
117
117
  app.start(appname, container_path, container_path_with_version)
118
118
  end
119
119
  end
@@ -129,7 +129,7 @@ module Smartcloud
129
129
 
130
130
  container_name = appname
131
131
 
132
- if Smartcloud::Docker.running?
132
+ if SmartCloud::Docker.running?
133
133
  container_id = `docker ps -a -q --filter='name=^#{container_name}$'`.chomp
134
134
  unless container_id.empty?
135
135
  logger.debug "Stopping & Removing container #{container_name} ..."
@@ -143,7 +143,7 @@ module Smartcloud
143
143
  end
144
144
 
145
145
  def self.clean_up(container_path)
146
- env_vars = Smartcloud::Apps::App.get_env_vars(container_path)
146
+ env_vars = SmartCloud::Apps::App.get_env_vars(container_path)
147
147
  return unless env_vars
148
148
 
149
149
  logger.info "Cleaning up ..."
@@ -1,7 +1,7 @@
1
- # The main Smartcloud Apps Rails driver
2
- module Smartcloud
1
+ # The main SmartCloud Apps Rails driver
2
+ module SmartCloud
3
3
  module Apps
4
- class Rails < Smartcloud::Base
4
+ class Rails < SmartCloud::Base
5
5
  def initialize
6
6
  end
7
7
 
@@ -47,14 +47,14 @@ module Smartcloud
47
47
  new_container = container_id.empty? ? "#{appname}_1" : "#{appname}_2"
48
48
  old_container = container_id.empty? ? "#{appname}_2" : "#{appname}_1"
49
49
 
50
- Smartcloud::Apps::App.stop("#{new_container}")
50
+ SmartCloud::Apps::App.stop("#{new_container}")
51
51
  if system("docker create \
52
52
  --name='#{new_container}' \
53
53
  --env-file='#{container_path}/env' \
54
54
  --user `id -u`:`id -g` \
55
55
  --workdir /app \
56
56
  --expose='3000' \
57
- --volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
57
+ --volume='#{SmartCloud.config.user_home_path}/.smartcloud/config:#{SmartCloud.config.user_home_path}/.smartcloud/config' \
58
58
  --volume='#{container_path_with_version}:/app' \
59
59
  --volume='#{container_path}/app/vendor/bundle:/app/vendor/bundle' \
60
60
  --volume='#{container_path}/app/public/assets:/app/public/assets' \
@@ -75,13 +75,13 @@ module Smartcloud
75
75
  if system("docker start #{new_container}", out: File::NULL)
76
76
  sleep 7
77
77
  logger.info "Web Server started successfully."
78
- Smartcloud::Apps::App.stop(old_container)
79
- Smartcloud::Apps::App.clean_up(container_path)
78
+ SmartCloud::Apps::App.stop(old_container)
79
+ SmartCloud::Apps::App.clean_up(container_path)
80
80
  logger.info "Launched Application ... Success."
81
81
  exit 10
82
82
  end
83
83
  else
84
- Smartcloud::Apps::App.stop("#{new_container}")
84
+ SmartCloud::Apps::App.stop("#{new_container}")
85
85
  end
86
86
  end
87
87
 
@@ -1,9 +1,9 @@
1
- require 'smartcloud/logger'
1
+ require 'smart_cloud/logger'
2
2
  require "active_support/inflector"
3
3
 
4
- module Smartcloud
4
+ module SmartCloud
5
5
  class Base
6
- include Smartcloud::Logger
6
+ include SmartCloud::Logger
7
7
 
8
8
  def initialize
9
9
  end
@@ -0,0 +1,24 @@
1
+ # The main SmartCloud Boot driver
2
+ module SmartCloud
3
+ class Boot < SmartCloud::Base
4
+ def initialize
5
+ end
6
+ end
7
+ end
8
+
9
+ require 'smart_cloud/credentials'
10
+
11
+ require 'smart_cloud/ssh'
12
+ require 'smart_cloud/machine'
13
+
14
+ require 'smart_cloud/docker'
15
+ require 'smart_cloud/engine'
16
+ require 'smart_cloud/buildpacker'
17
+
18
+ require 'smart_cloud/user'
19
+
20
+ require 'smart_cloud/grids/nextcloud'
21
+ require 'smart_cloud/grids/redmine'
22
+
23
+ require 'smart_cloud/apps/app'
24
+ require 'smart_cloud/apps/rails'
@@ -1,7 +1,7 @@
1
1
  require 'open3'
2
2
 
3
- module Smartcloud
4
- class Buildpacker < Smartcloud::Base
3
+ module SmartCloud
4
+ class Buildpacker < SmartCloud::Base
5
5
  def initialize
6
6
  end
7
7
 
@@ -12,7 +12,7 @@ module Smartcloud
12
12
  if system("docker image build -t smartcloud/buildpacks/rails \
13
13
  --build-arg USER_UID=`id -u` \
14
14
  --build-arg USER_NAME=`id -un` \
15
- #{Smartcloud.config.root_path}/lib/smartcloud/engine/buildpacks/rails", out: File::NULL)
15
+ #{SmartCloud.config.root_path}/lib/smartcloud/engine/buildpacks/rails", out: File::NULL)
16
16
  puts "done"
17
17
  end
18
18
  end
@@ -29,7 +29,7 @@ module Smartcloud
29
29
 
30
30
  def pack
31
31
  if File.exist? "bin/rails"
32
- rails = Smartcloud::Apps::Rails.new
32
+ rails = SmartCloud::Apps::Rails.new
33
33
  rails.pack
34
34
  end
35
35
  end
@@ -3,9 +3,9 @@ require "tmpdir"
3
3
  require "active_support/message_encryptor"
4
4
  require "active_support/core_ext/hash/keys"
5
5
 
6
- # The main Smartcloud Credentials driver
7
- module Smartcloud
8
- class Credentials < Smartcloud::Base
6
+ # The main SmartCloud Credentials driver
7
+ module SmartCloud
8
+ class Credentials < SmartCloud::Base
9
9
 
10
10
  CIPHER = "aes-256-gcm"
11
11
 
@@ -51,29 +51,15 @@ module Smartcloud
51
51
  def credentials_template
52
52
  <<~YAML
53
53
  machine:
54
- hostname: #{SecureRandom.hex(8)}
55
- host: 122.122.122.122
54
+ name: #{SecureRandom.hex(8)}
55
+ address: 122.122.122.122
56
56
  port: 22
57
57
  root_password: #{SecureRandom.hex(16)}
58
58
  username: #{SecureRandom.hex(8)}
59
59
  password: #{SecureRandom.hex(16)}
60
60
 
61
- minio:
62
- hostname: #{SecureRandom.hex(8)}
63
- access_key: #{SecureRandom.hex(8)}
64
- secret_key: #{SecureRandom.hex(16)}
65
- browser: on
66
- worm: off
67
-
68
- mysql:
69
- port: 3306
70
- root_password: #{SecureRandom.hex(16)}
71
- username: #{SecureRandom.hex(8)}
72
- password: #{SecureRandom.hex(16)}
73
- database_name: #{SecureRandom.hex(8)}
74
-
75
61
  nextcloud:
76
- hostname: #{SecureRandom.hex(8)}
62
+ name: #{SecureRandom.hex(8)}
77
63
  admin_username: #{SecureRandom.hex(8)}
78
64
  admin_password: #{SecureRandom.hex(16)}
79
65
  database_host: mysql
@@ -82,9 +68,6 @@ module Smartcloud
82
68
  database_password: #{SecureRandom.hex(16)}
83
69
  database_name: #{SecureRandom.hex(8)}_nextcloud
84
70
 
85
- elasticsearch:
86
- port: 9200
87
-
88
71
  redmine:
89
72
  admin_username: admin
90
73
  admin_password: #{SecureRandom.hex(16)}
@@ -1,19 +1,18 @@
1
- # The main Smartcloud Docker driver
2
- module Smartcloud
3
- class Docker < Smartcloud::Base
1
+ # The main SmartCloud Docker driver
2
+ module SmartCloud
3
+ class Docker < SmartCloud::Base
4
4
  def initialize
5
5
  end
6
6
 
7
7
  # Installing Docker!
8
8
  #
9
9
  # Example:
10
- # >> Docker.install
11
10
  # => Installation Complete
12
11
  #
13
12
  # Arguments:
14
13
  # none
15
- def self.install
16
- ssh = Smartcloud::SSH.new
14
+ def install
15
+ ssh = SmartCloud::SSH.new
17
16
 
18
17
  puts "-----> Installing Docker"
19
18
  commands = [
@@ -47,13 +46,12 @@ module Smartcloud
47
46
  # Uninstalling Docker!
48
47
  #
49
48
  # Example:
50
- # >> Docker.uninstall
51
49
  # => Uninstallation Complete
52
50
  #
53
51
  # Arguments:
54
52
  # none
55
- def self.uninstall
56
- ssh = Smartcloud::SSH.new
53
+ def uninstall
54
+ ssh = SmartCloud::SSH.new
57
55
 
58
56
  puts "-----> Uninstalling Docker Compose"
59
57
  ssh.run "sudo rm /usr/local/bin/docker-compose"
@@ -71,7 +69,7 @@ module Smartcloud
71
69
  puts "-----> You must delete any edited configuration files manually."
72
70
  end
73
71
 
74
- def self.add_ufw_rules
72
+ def add_ufw_rules
75
73
  puts '-----> Add the following rules to the end of the file /etc/ufw/after.rules and reload ufw using - sudo ufw reload'
76
74
  puts '# BEGIN UFW AND DOCKER
77
75
  *filter
@@ -104,7 +102,7 @@ module Smartcloud
104
102
  # system("sudo ufw reload")
105
103
  end
106
104
 
107
- def self.remove_ufw_rules
105
+ def remove_ufw_rules
108
106
  puts '-----> Remove the following rules at the end of the file /etc/ufw/after.rules and reload ufw using - sudo ufw reload'
109
107
  puts '# BEGIN UFW AND DOCKER
110
108
  *filter