smartcloud 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{lib/smartcloud/grids/grid-elasticsearch/.keep → CHANGELOG.rdoc} +0 -0
- data/README.rdoc +9 -0
- data/bin/smartcloud +17 -17
- data/lib/smart_cloud.rb +24 -0
- data/lib/{smartcloud → smart_cloud}/apps/app.rb +22 -22
- data/lib/{smartcloud → smart_cloud}/apps/rails.rb +8 -8
- data/lib/{smartcloud → smart_cloud}/base.rb +3 -3
- data/lib/smart_cloud/boot.rb +24 -0
- data/lib/{smartcloud → smart_cloud}/buildpacker.rb +4 -4
- data/lib/{smartcloud → smart_cloud}/credentials.rb +6 -23
- data/lib/{smartcloud → smart_cloud}/docker.rb +9 -11
- data/lib/{smartcloud → smart_cloud}/engine.rb +13 -13
- data/lib/{smartcloud → smart_cloud}/engine/Dockerfile +2 -2
- data/lib/{smartcloud → smart_cloud}/engine/buildpacks/rails/Dockerfile +0 -0
- data/lib/smart_cloud/gem_version.rb +17 -0
- data/lib/{smartcloud → smart_cloud}/grids/nextcloud.rb +17 -17
- data/lib/{smartcloud/grids/grid-minio → smart_cloud/grids/nextcloud}/.keep +0 -0
- data/lib/{smartcloud → smart_cloud}/grids/redmine.rb +18 -18
- data/lib/{smartcloud/grids/grid-mysql/docker-entrypoint-initdb.d → smart_cloud/grids/redmine}/.keep +0 -0
- data/lib/{smartcloud → smart_cloud}/logger.rb +4 -4
- data/lib/{smartcloud → smart_cloud}/machine.rb +80 -80
- data/lib/{smartcloud → smart_cloud}/ssh.rb +6 -6
- data/lib/{smartcloud/grids/grid-nextcloud → smart_cloud/templates/dotsmartcloud/apps/containers}/.keep +0 -0
- data/lib/{smartcloud/grids/grid-nginx → smart_cloud/templates/dotsmartcloud/apps/repositories}/.keep +0 -0
- data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/bin/smartcloud.sh +0 -0
- data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/config/environment.rb +5 -5
- data/lib/{smartcloud → smart_cloud}/templates/dotsmartcloud/config/users.yml +0 -0
- data/lib/{smartcloud/grids/grid-redis → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html}/.keep +0 -0
- data/lib/{smartcloud/grids/grid-redmine → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html/apps}/.keep +0 -0
- data/lib/{smartcloud/grids/grid-solr → smart_cloud/templates/dotsmartcloud/grids/nextcloud/html}/config/.keep +0 -0
- data/lib/{smartcloud/grids/grid-solr/config/lib → smart_cloud/templates/dotsmartcloud/grids/redmine/files}/.keep +0 -0
- data/lib/{smartcloud/grids/grid-solr/docker-entrypoint-initdb.d → smart_cloud/templates/dotsmartcloud/tmp}/.keep +0 -0
- data/lib/{smartcloud → smart_cloud}/user.rb +6 -6
- data/lib/smart_cloud/version.rb +10 -0
- metadata +48 -241
- data/README.md +0 -81
- data/bin/buildpacker +0 -8
- data/bin/prereceiver +0 -8
- data/lib/smartcloud.rb +0 -24
- data/lib/smartcloud/boot.rb +0 -30
- data/lib/smartcloud/grids/elasticsearch.rb +0 -90
- data/lib/smartcloud/grids/grid-prereceiver/Dockerfile +0 -18
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/APKBUILD +0 -49
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.confd +0 -6
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd +0 -43
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.pre-install +0 -7
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/APKINDEX.tar.gz +0 -0
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-1.1.1-r4.apk +0 -0
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-doc-1.1.1-r4.apk +0 -0
- data/lib/smartcloud/grids/grid-prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-openrc-1.1.1-r4.apk +0 -0
- data/lib/smartcloud/grids/grid-solr/config/README.txt +0 -77
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_ca.txt +0 -8
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_fr.txt +0 -15
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_ga.txt +0 -5
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/contractions_it.txt +0 -23
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/hyphenations_ga.txt +0 -5
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stemdict_nl.txt +0 -6
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stoptags_ja.txt +0 -420
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ar.txt +0 -125
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_bg.txt +0 -193
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ca.txt +0 -220
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_cz.txt +0 -172
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_da.txt +0 -110
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_de.txt +0 -294
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_el.txt +0 -78
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_en.txt +0 -54
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_es.txt +0 -356
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_eu.txt +0 -99
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fa.txt +0 -313
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fi.txt +0 -97
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_fr.txt +0 -186
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ga.txt +0 -110
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_gl.txt +0 -161
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hi.txt +0 -235
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hu.txt +0 -211
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_hy.txt +0 -46
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_id.txt +0 -359
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_it.txt +0 -303
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ja.txt +0 -127
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_lv.txt +0 -172
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_nl.txt +0 -119
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_no.txt +0 -194
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_pt.txt +0 -253
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ro.txt +0 -233
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_ru.txt +0 -243
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_sv.txt +0 -133
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_th.txt +0 -119
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/stopwords_tr.txt +0 -212
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/lang/userdict_ja.txt +0 -29
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/managed-schema +0 -1007
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/params.json +0 -20
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/protwords.txt +0 -21
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/solrconfig.xml +0 -1355
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/stopwords.txt +0 -14
- data/lib/smartcloud/grids/grid-solr/config/configsets/_default/conf/synonyms.txt +0 -29
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_rest_managed.json +0 -1
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_stopwords_english.json +0 -38
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_synonyms_english.json +0 -11
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/README.txt +0 -11
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/kmeans-attributes.xml +0 -19
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/lingo-attributes.xml +0 -24
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/stc-attributes.xml +0 -19
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/currency.xml +0 -67
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/elevate.xml +0 -42
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ca.txt +0 -8
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_fr.txt +0 -15
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ga.txt +0 -5
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_it.txt +0 -23
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/hyphenations_ga.txt +0 -5
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stemdict_nl.txt +0 -6
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stoptags_ja.txt +0 -420
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ar.txt +0 -125
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_bg.txt +0 -193
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ca.txt +0 -220
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ckb.txt +0 -136
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_cz.txt +0 -172
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_da.txt +0 -110
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_de.txt +0 -294
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_el.txt +0 -78
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_en.txt +0 -54
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_es.txt +0 -356
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_eu.txt +0 -99
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fa.txt +0 -313
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fi.txt +0 -97
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fr.txt +0 -186
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ga.txt +0 -110
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_gl.txt +0 -161
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hi.txt +0 -235
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hu.txt +0 -211
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hy.txt +0 -46
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_id.txt +0 -359
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_it.txt +0 -303
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ja.txt +0 -127
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_lv.txt +0 -172
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_nl.txt +0 -119
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_no.txt +0 -194
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_pt.txt +0 -253
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ro.txt +0 -233
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ru.txt +0 -243
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_sv.txt +0 -133
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_th.txt +0 -119
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_tr.txt +0 -212
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/lang/userdict_ja.txt +0 -29
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/managed-schema +0 -1187
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/mapping-FoldToASCII.txt +0 -3813
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/mapping-ISOLatin1Accent.txt +0 -246
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/params.json +0 -11
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/protwords.txt +0 -21
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/solrconfig.xml +0 -1616
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/spellings.txt +0 -2
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/stopwords.txt +0 -14
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/synonyms.txt +0 -29
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/update-script.js +0 -53
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/README.txt +0 -101
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/VM_global_library.vm +0 -186
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/browse.vm +0 -33
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster.vm +0 -19
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster_results.vm +0 -31
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/debug.vm +0 -28
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/did_you_mean.vm +0 -11
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/error.vm +0 -11
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_fields.vm +0 -24
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_pivot.vm +0 -12
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_queries.vm +0 -12
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_ranges.vm +0 -23
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/facets.vm +0 -10
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/footer.vm +0 -43
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/head.vm +0 -37
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/header.vm +0 -7
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit.vm +0 -25
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_grouped.vm +0 -43
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_plain.vm +0 -25
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/join_doc.vm +0 -20
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.css +0 -48
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.js +0 -763
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/layout.vm +0 -24
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/main.css +0 -231
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/mime_type_lists.vm +0 -68
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_bottom.vm +0 -22
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_top.vm +0 -29
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/product_doc.vm +0 -32
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query.vm +0 -42
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_form.vm +0 -64
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_group.vm +0 -43
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/query_spatial.vm +0 -75
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/results_list.vm +0 -22
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/richtext_doc.vm +0 -153
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/suggest.vm +0 -8
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/velocity/tabs.vm +0 -50
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example.xsl +0 -132
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example_atom.xsl +0 -67
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/example_rss.xsl +0 -66
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/luke.xsl +0 -337
- data/lib/smartcloud/grids/grid-solr/config/configsets/sample_techproducts_configs/conf/xslt/updateXml.xsl +0 -70
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/_rest_managed.json +0 -1
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/admin-extra.html +0 -31
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/currency.xml +0 -67
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/elevate.xml +0 -36
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/lang/stopwords_en.txt +0 -54
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/mapping-ISOLatin1Accent.txt +0 -246
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/protwords.txt +0 -21
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/schema.xml +0 -278
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/scripts.conf +0 -24
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/solrconfig.xml +0 -632
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/spellings.txt +0 -2
- data/lib/smartcloud/grids/grid-solr/config/configsets/sunspot/conf/synonyms.txt +0 -29
- data/lib/smartcloud/grids/grid-solr/config/solr.xml +0 -53
- data/lib/smartcloud/grids/grid-solr/config/zoo.cfg +0 -31
- data/lib/smartcloud/grids/grid-solr/sunspot/conf/schema.xml +0 -278
- data/lib/smartcloud/grids/grid-solr/sunspot/conf/solrconfig.xml +0 -632
- data/lib/smartcloud/grids/minio.rb +0 -77
- data/lib/smartcloud/grids/mysql.rb +0 -66
- data/lib/smartcloud/grids/nginx.rb +0 -137
- data/lib/smartcloud/grids/prereceiver.rb +0 -134
- data/lib/smartcloud/grids/redis.rb +0 -58
- data/lib/smartcloud/grids/solr.rb +0 -99
- data/lib/smartcloud/templates/dotsmartcloud/apps/containers/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/apps/repositories/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-elasticsearch/data/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-elasticsearch/logs/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-minio/data/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-mysql/data/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/apps/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nextcloud/html/config/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/certificates/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/fastcgi.conf +0 -11
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/htpasswd/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/nginx.tmpl +0 -373
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive +0 -17
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-redis/data/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-redmine/files/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/grids/grid-solr/solr/.keep +0 -0
- data/lib/smartcloud/templates/dotsmartcloud/tmp/.keep +0 -0
- data/lib/smartcloud/version.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edbc1d3288fe7a3f2a940daa43460e49db5d70266470d19f69ca4e3f1e5a693e
|
4
|
+
data.tar.gz: 11b2a8973b2eb7d3c97120dbc3e710258281a6c84c726b95f75849a5753805ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 420636be131c9d7ed87fce9dbcf6832f7f6f3adf8525e58fb32050c50c6262df0b84cd7f299eb67fd13a4b01b3d2c23851e56aaae9e78631dbaaefcb82dcb8d2
|
7
|
+
data.tar.gz: 26423c0dee22ed511466700cf3a579111fd514d0f5de88cede44f287c6186cab1c613676aaebc84c8952b430fb1627166dc96c8f41134a8e67bcb603fe615f32
|
File without changes
|
data/README.rdoc
ADDED
data/bin/smartcloud
CHANGED
@@ -1,51 +1,51 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'smart_cloud'
|
4
4
|
|
5
5
|
command = ARGV.shift
|
6
6
|
|
7
7
|
if command == '--version'
|
8
|
-
puts "
|
8
|
+
puts "SmartCloud #{SmartCloud.version}"
|
9
9
|
return
|
10
10
|
end
|
11
11
|
|
12
|
-
if
|
12
|
+
if SmartCloud::Machine.local?
|
13
13
|
if command == 'start'
|
14
|
-
machine =
|
14
|
+
machine = SmartCloud::Machine.new
|
15
15
|
machine.start
|
16
16
|
elsif command == 'stop'
|
17
|
-
machine =
|
17
|
+
machine = SmartCloud::Machine.new
|
18
18
|
machine.stop
|
19
19
|
elsif command == 'ssh'
|
20
|
-
machine =
|
20
|
+
machine = SmartCloud::Machine.new
|
21
21
|
machine.ssh
|
22
22
|
elsif command == 'sync'
|
23
|
-
machine =
|
23
|
+
machine = SmartCloud::Machine.new
|
24
24
|
machine.sync
|
25
25
|
elsif command == 'grid'
|
26
|
-
machine =
|
26
|
+
machine = SmartCloud::Machine.new
|
27
27
|
machine.grid ARGV
|
28
28
|
elsif command == 'app'
|
29
|
-
machine =
|
29
|
+
machine = SmartCloud::Machine.new
|
30
30
|
machine.app ARGV
|
31
31
|
elsif command == 'ps'
|
32
|
-
ssh =
|
32
|
+
ssh = SmartCloud::SSH.new
|
33
33
|
ssh.run "smartcloud ps #{ARGV.join(' ')}"
|
34
34
|
elsif command == 'logs'
|
35
|
-
ssh =
|
35
|
+
ssh = SmartCloud::SSH.new
|
36
36
|
ssh.run "smartcloud logs #{ARGV.join(' ')}"
|
37
37
|
elsif command == 'credentials:edit'
|
38
|
-
credentials =
|
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
|
43
|
+
elsif SmartCloud::Machine.remote?
|
44
44
|
if command == 'run'
|
45
|
-
machine =
|
45
|
+
machine = SmartCloud::Machine.new
|
46
46
|
machine.run ARGV
|
47
47
|
elsif command == 'buildpacker'
|
48
|
-
buildpacker =
|
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 =
|
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 =
|
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?"
|
data/lib/smart_cloud.rb
ADDED
@@ -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
|
2
|
-
module
|
1
|
+
# The main SmartCloud App driver
|
2
|
+
module SmartCloud
|
3
3
|
module Apps
|
4
|
-
class App <
|
4
|
+
class App < SmartCloud::Base
|
5
5
|
def initialize
|
6
6
|
end
|
7
7
|
|
8
8
|
# Creating App!
|
9
9
|
#
|
10
10
|
# Example:
|
11
|
-
# >>
|
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
|
25
|
-
repository_path = "#{
|
26
|
-
container_path = "#{
|
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 #{
|
43
|
-
%x[ln -s #{
|
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?("#{
|
49
|
-
require "#{
|
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}.#{
|
60
|
-
LETSENCRYPT_HOST=#{appname}.#{
|
61
|
-
LETSENCRYPT_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
|
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 = "#{
|
82
|
-
container_path = "#{
|
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
|
104
|
-
container_path = "#{
|
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 =
|
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
|
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 =
|
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
|
2
|
-
module
|
1
|
+
# The main SmartCloud Apps Rails driver
|
2
|
+
module SmartCloud
|
3
3
|
module Apps
|
4
|
-
class Rails <
|
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
|
-
|
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='#{
|
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
|
-
|
79
|
-
|
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
|
-
|
84
|
+
SmartCloud::Apps::App.stop("#{new_container}")
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
@@ -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
|
4
|
-
class Buildpacker <
|
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
|
-
#{
|
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 =
|
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
|
7
|
-
module
|
8
|
-
class Credentials <
|
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
|
-
|
55
|
-
|
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
|
-
|
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
|
2
|
-
module
|
3
|
-
class Docker <
|
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
|
16
|
-
ssh =
|
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
|
56
|
-
ssh =
|
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
|
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
|
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
|