roro 0.3.2 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (349) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -9
  3. data/{docker/env_files/.keep → .keep} +0 -0
  4. data/Guardfile +2 -2
  5. data/lib/roro/cli.rb +2 -3
  6. data/lib/roro/cli/base/base.rb +7 -0
  7. data/lib/roro/cli/base/base_files.rb +38 -0
  8. data/lib/roro/cli/base/configuration.rb +63 -0
  9. data/lib/roro/cli/base/continuous_integration.rb +13 -0
  10. data/lib/roro/cli/base/insert_gems.rb +23 -0
  11. data/lib/roro/cli/base/insertions.rb +17 -0
  12. data/lib/roro/cli/base/utilities.rb +17 -0
  13. data/lib/roro/cli/generate_keys.rb +1 -1
  14. data/lib/roro/cli/greenfield.rb +15 -11
  15. data/lib/roro/cli/rollon.rb +19 -12
  16. data/lib/roro/cli/rollon/as_dockerize.rb +28 -0
  17. data/lib/roro/cli/rollon/as_quickstart.rb +17 -0
  18. data/lib/roro/cli/rollon/as_roro.rb +30 -0
  19. data/lib/roro/cli/rollon/use_cases.rb +3 -0
  20. data/lib/roro/cli/ruby_gem.rb +6 -0
  21. data/lib/roro/cli/templates/base/.dockerignore +13 -0
  22. data/{docker/keys → lib/roro/cli/templates/base}/.keep +0 -0
  23. data/{test_apps/dummy_roro/.circleci/config.yml → lib/roro/cli/templates/base/circleci/config.yml.tt} +7 -6
  24. data/lib/roro/cli/templates/{config → base/config}/database.yml +0 -0
  25. data/lib/roro/cli/templates/base/docker-compose.yml.tt +53 -0
  26. data/lib/roro/cli/templates/base/livereload/hosts.example +7 -0
  27. data/lib/roro/cli/templates/{docker/containers/database → base/roro}/.keep +0 -0
  28. data/lib/roro/cli/templates/{docker/env_files → base/roro/containers}/.keep +0 -0
  29. data/lib/roro/cli/templates/{docker/keys → base/roro/containers/app}/.keep +0 -0
  30. data/lib/roro/cli/templates/base/roro/containers/app/Dockerfile.tt +32 -0
  31. data/lib/roro/cli/templates/base/roro/containers/app/development.env.tt +1 -0
  32. data/lib/roro/cli/templates/base/roro/containers/app/docker-entrypoint.sh +8 -0
  33. data/lib/roro/cli/templates/base/roro/containers/app/test.env.tt +1 -0
  34. data/lib/roro/cli/templates/base/roro/containers/database/development.env.tt +4 -0
  35. data/lib/roro/cli/templates/base/roro/containers/database/test.env.tt +4 -0
  36. data/{test_apps/dummy/app/assets/images → lib/roro/cli/templates/base/roro/containers/frontend}/.keep +0 -0
  37. data/{test_apps/dummy/app/assets/javascripts/channels → lib/roro/cli/templates/dockerize/.env}/.keep +0 -0
  38. data/{test_apps/dummy/app/controllers/concerns → lib/roro/cli/templates/dockerize/.env/development}/.keep +0 -0
  39. data/lib/roro/cli/templates/dockerize/.env/development/database +3 -0
  40. data/lib/roro/cli/templates/dockerize/.env/development/web +1 -0
  41. data/{test_apps/dummy/app/models/concerns → lib/roro/cli/templates/dockerize}/.keep +0 -0
  42. data/lib/roro/cli/templates/dockerize/Dockerfile.tt +23 -0
  43. data/lib/roro/cli/templates/dockerize/docker-compose.yml +60 -0
  44. data/lib/roro/cli/templates/dockerize/docker-entrypoint.sh +9 -0
  45. data/lib/roro/cli/templates/greenfield/Dockerfile.tt +21 -0
  46. data/lib/roro/cli/templates/greenfield/Gemfile +1 -1
  47. data/lib/roro/cli/templates/greenfield/docker-compose.yml +12 -10
  48. data/lib/roro/cli/templates/greenfield/docker-entrypoint.sh +8 -0
  49. data/{test_apps/dummy/lib/assets → lib/roro/cli/templates/jumpstart/.env}/.keep +0 -0
  50. data/{test_apps/dummy/lib/tasks → lib/roro/cli/templates/jumpstart/.env/development}/.keep +0 -0
  51. data/lib/roro/cli/templates/jumpstart/.env/development/database +3 -0
  52. data/lib/roro/cli/templates/jumpstart/.env/development/web +1 -0
  53. data/{test_apps/dummy/log → lib/roro/cli/templates/jumpstart}/.keep +0 -0
  54. data/lib/roro/cli/templates/jumpstart/Dockerfile.tt +30 -0
  55. data/lib/roro/cli/templates/jumpstart/docker-compose.yml +59 -0
  56. data/lib/roro/cli/templates/jumpstart/docker-entrypoint.sh +16 -0
  57. data/lib/roro/cli/templates/quickstart/Dockerfile.tt +20 -0
  58. data/{test_apps/dummy/config → lib/roro/cli/templates/quickstart}/database.yml +12 -12
  59. data/lib/roro/cli/templates/quickstart/docker-compose.yml +17 -0
  60. data/lib/roro/cli/templates/quickstart/entrypoint.sh +8 -0
  61. data/lib/roro/cli/templates/ruby_gem/.gitignore +8 -0
  62. data/lib/roro/version.rb +1 -1
  63. data/roro.gemspec +5 -3
  64. data/vendor/cache/actionpack-6.0.3.2.gem +0 -0
  65. data/vendor/cache/actionview-6.0.3.2.gem +0 -0
  66. data/vendor/cache/activesupport-6.0.3.2.gem +0 -0
  67. data/vendor/cache/addressable-2.7.0.gem +0 -0
  68. data/vendor/cache/builder-3.2.4.gem +0 -0
  69. data/vendor/cache/byebug-11.1.3.gem +0 -0
  70. data/vendor/cache/coderay-1.1.3.gem +0 -0
  71. data/vendor/cache/concurrent-ruby-1.1.6.gem +0 -0
  72. data/vendor/cache/crass-1.0.6.gem +0 -0
  73. data/vendor/cache/erubi-1.9.0.gem +0 -0
  74. data/vendor/cache/ffi-1.13.1.gem +0 -0
  75. data/vendor/cache/guard-2.16.2.gem +0 -0
  76. data/vendor/cache/i18n-1.8.5.gem +0 -0
  77. data/vendor/cache/launchy-2.5.0.gem +0 -0
  78. data/vendor/cache/listen-3.2.1.gem +0 -0
  79. data/vendor/cache/loofah-2.6.0.gem +0 -0
  80. data/vendor/cache/lumberjack-1.2.7.gem +0 -0
  81. data/vendor/cache/method_source-1.0.0.gem +0 -0
  82. data/vendor/cache/minitest-5.14.1.gem +0 -0
  83. data/vendor/cache/minitest-rails-6.0.1.gem +0 -0
  84. data/vendor/cache/multi_json-1.15.0.gem +0 -0
  85. data/vendor/cache/net-scp-3.0.0.gem +0 -0
  86. data/vendor/cache/net-ssh-6.1.0.gem +0 -0
  87. data/vendor/cache/{nokogiri-1.9.1.gem → nokogiri-1.10.10.gem} +0 -0
  88. data/vendor/cache/notiffany-0.1.3.gem +0 -0
  89. data/vendor/cache/pry-0.13.1.gem +0 -0
  90. data/vendor/cache/public_suffix-4.0.5.gem +0 -0
  91. data/vendor/cache/rack-2.2.3.gem +0 -0
  92. data/vendor/cache/rails-html-sanitizer-1.3.0.gem +0 -0
  93. data/vendor/cache/railties-6.0.3.2.gem +0 -0
  94. data/vendor/cache/rake-13.0.1.gem +0 -0
  95. data/vendor/cache/rb-fsevent-0.10.4.gem +0 -0
  96. data/vendor/cache/rb-inotify-0.10.1.gem +0 -0
  97. data/vendor/cache/shoulda-4.0.0.gem +0 -0
  98. data/vendor/cache/shoulda-context-2.0.0.gem +0 -0
  99. data/vendor/cache/shoulda-matchers-4.3.0.gem +0 -0
  100. data/vendor/cache/sorcerer-2.0.1.gem +0 -0
  101. data/vendor/cache/thor-1.0.1.gem +0 -0
  102. data/vendor/cache/tzinfo-1.2.7.gem +0 -0
  103. data/vendor/cache/zeitwerk-2.4.0.gem +0 -0
  104. metadata +116 -272
  105. data/.circleci/config.yml +0 -177
  106. data/.circleci/setup-gem-credentials.sh +0 -3
  107. data/.ruby-version +0 -1
  108. data/Gemfile.lock +0 -165
  109. data/_config.yml +0 -1
  110. data/docker-compose.yml +0 -21
  111. data/docker/containers/2_5_3/Dockerfile +0 -10
  112. data/docker/containers/2_6_0/Dockerfile +0 -10
  113. data/docker/containers/app/Dockerfile +0 -10
  114. data/docker/env_files/circleci.env.enc +0 -5
  115. data/lib/roro/cli/base.rb +0 -137
  116. data/lib/roro/cli/templates/Gemfile.lock +0 -0
  117. data/lib/roro/cli/templates/Guardfile +0 -81
  118. data/lib/roro/cli/templates/circleci/Rakefile +0 -4
  119. data/lib/roro/cli/templates/circleci/config.job-example.yml +0 -33
  120. data/lib/roro/cli/templates/circleci/config.yml +0 -69
  121. data/lib/roro/cli/templates/circleci/config.yml.workflow-example +0 -62
  122. data/lib/roro/cli/templates/circleci/deploy.rake +0 -127
  123. data/lib/roro/cli/templates/config.yml +0 -71
  124. data/lib/roro/cli/templates/docker-compose.yml +0 -53
  125. data/lib/roro/cli/templates/docker/containers/app/Dockerfile.tt +0 -12
  126. data/lib/roro/cli/templates/docker/containers/web/Dockerfile.tt +0 -18
  127. data/lib/roro/cli/templates/docker/containers/web/app.conf.tt +0 -23
  128. data/lib/roro/cli/templates/docker/overrides/circleci.yml.tt +0 -19
  129. data/lib/roro/cli/templates/docker/overrides/production.yml.tt +0 -26
  130. data/lib/roro/cli/templates/docker/web/Dockerfile +0 -20
  131. data/lib/roro/cli/templates/docker/web/app.conf +0 -23
  132. data/lib/roro/cli/templates/gitignore +0 -27
  133. data/lib/roro/cli/templates/greenfield/Dockerfile +0 -8
  134. data/lib/roro/cli/templates/lib/tasks/deploy.rake +0 -126
  135. data/test_apps/dummy/.gitignore +0 -27
  136. data/test_apps/dummy/Gemfile +0 -61
  137. data/test_apps/dummy/README.md +0 -24
  138. data/test_apps/dummy/Rakefile +0 -6
  139. data/test_apps/dummy/app/assets/config/manifest.js +0 -3
  140. data/test_apps/dummy/app/assets/javascripts/application.js +0 -16
  141. data/test_apps/dummy/app/assets/javascripts/cable.js +0 -13
  142. data/test_apps/dummy/app/assets/stylesheets/application.css +0 -15
  143. data/test_apps/dummy/app/channels/application_cable/channel.rb +0 -4
  144. data/test_apps/dummy/app/channels/application_cable/connection.rb +0 -4
  145. data/test_apps/dummy/app/controllers/application_controller.rb +0 -2
  146. data/test_apps/dummy/app/helpers/application_helper.rb +0 -2
  147. data/test_apps/dummy/app/jobs/application_job.rb +0 -2
  148. data/test_apps/dummy/app/mailers/application_mailer.rb +0 -4
  149. data/test_apps/dummy/app/models/application_record.rb +0 -3
  150. data/test_apps/dummy/app/views/layouts/application.html.erb +0 -15
  151. data/test_apps/dummy/app/views/layouts/mailer.html.erb +0 -13
  152. data/test_apps/dummy/app/views/layouts/mailer.text.erb +0 -1
  153. data/test_apps/dummy/bin/bundle +0 -3
  154. data/test_apps/dummy/bin/rails +0 -4
  155. data/test_apps/dummy/bin/rake +0 -4
  156. data/test_apps/dummy/bin/setup +0 -36
  157. data/test_apps/dummy/bin/update +0 -31
  158. data/test_apps/dummy/bin/yarn +0 -11
  159. data/test_apps/dummy/config.ru +0 -5
  160. data/test_apps/dummy/config/application.rb +0 -19
  161. data/test_apps/dummy/config/boot.rb +0 -4
  162. data/test_apps/dummy/config/cable.yml +0 -10
  163. data/test_apps/dummy/config/credentials.yml.enc +0 -1
  164. data/test_apps/dummy/config/environment.rb +0 -5
  165. data/test_apps/dummy/config/environments/development.rb +0 -61
  166. data/test_apps/dummy/config/environments/production.rb +0 -94
  167. data/test_apps/dummy/config/environments/test.rb +0 -46
  168. data/test_apps/dummy/config/initializers/application_controller_renderer.rb +0 -8
  169. data/test_apps/dummy/config/initializers/assets.rb +0 -14
  170. data/test_apps/dummy/config/initializers/backtrace_silencers.rb +0 -7
  171. data/test_apps/dummy/config/initializers/content_security_policy.rb +0 -25
  172. data/test_apps/dummy/config/initializers/cookies_serializer.rb +0 -5
  173. data/test_apps/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  174. data/test_apps/dummy/config/initializers/inflections.rb +0 -16
  175. data/test_apps/dummy/config/initializers/mime_types.rb +0 -4
  176. data/test_apps/dummy/config/initializers/wrap_parameters.rb +0 -14
  177. data/test_apps/dummy/config/locales/en.yml +0 -33
  178. data/test_apps/dummy/config/puma.rb +0 -34
  179. data/test_apps/dummy/config/routes.rb +0 -3
  180. data/test_apps/dummy/config/spring.rb +0 -6
  181. data/test_apps/dummy/config/storage.yml +0 -34
  182. data/test_apps/dummy/db/seeds.rb +0 -7
  183. data/test_apps/dummy/package.json +0 -5
  184. data/test_apps/dummy/public/404.html +0 -67
  185. data/test_apps/dummy/public/422.html +0 -67
  186. data/test_apps/dummy/public/500.html +0 -66
  187. data/test_apps/dummy/public/apple-touch-icon-precomposed.png +0 -0
  188. data/test_apps/dummy/public/apple-touch-icon.png +0 -0
  189. data/test_apps/dummy/public/favicon.ico +0 -0
  190. data/test_apps/dummy/public/robots.txt +0 -1
  191. data/test_apps/dummy/storage/.keep +0 -0
  192. data/test_apps/dummy/test/application_system_test_case.rb +0 -5
  193. data/test_apps/dummy/test/controllers/.keep +0 -0
  194. data/test_apps/dummy/test/fixtures/.keep +0 -0
  195. data/test_apps/dummy/test/fixtures/files/.keep +0 -0
  196. data/test_apps/dummy/test/helpers/.keep +0 -0
  197. data/test_apps/dummy/test/integration/.keep +0 -0
  198. data/test_apps/dummy/test/mailers/.keep +0 -0
  199. data/test_apps/dummy/test/models/.keep +0 -0
  200. data/test_apps/dummy/test/system/.keep +0 -0
  201. data/test_apps/dummy/test/test_helper.rb +0 -10
  202. data/test_apps/dummy/tmp/.keep +0 -0
  203. data/test_apps/dummy/vendor/.keep +0 -0
  204. data/test_apps/dummy_gem/.keep +0 -0
  205. data/test_apps/dummy_roro/.circleci/Rakefile +0 -4
  206. data/test_apps/dummy_roro/.circleci/config.job-example.yml +0 -33
  207. data/test_apps/dummy_roro/.circleci/config.yml.workflow-example +0 -62
  208. data/test_apps/dummy_roro/.circleci/deploy.rake +0 -127
  209. data/test_apps/dummy_roro/.gitignore +0 -27
  210. data/test_apps/dummy_roro/Gemfile +0 -64
  211. data/test_apps/dummy_roro/README.md +0 -24
  212. data/test_apps/dummy_roro/Rakefile +0 -6
  213. data/test_apps/dummy_roro/app/assets/config/manifest.js +0 -3
  214. data/test_apps/dummy_roro/app/assets/images/.keep +0 -0
  215. data/test_apps/dummy_roro/app/assets/javascripts/application.js +0 -16
  216. data/test_apps/dummy_roro/app/assets/javascripts/cable.js +0 -13
  217. data/test_apps/dummy_roro/app/assets/javascripts/channels/.keep +0 -0
  218. data/test_apps/dummy_roro/app/assets/stylesheets/application.css +0 -15
  219. data/test_apps/dummy_roro/app/channels/application_cable/channel.rb +0 -4
  220. data/test_apps/dummy_roro/app/channels/application_cable/connection.rb +0 -4
  221. data/test_apps/dummy_roro/app/controllers/application_controller.rb +0 -2
  222. data/test_apps/dummy_roro/app/controllers/concerns/.keep +0 -0
  223. data/test_apps/dummy_roro/app/helpers/application_helper.rb +0 -2
  224. data/test_apps/dummy_roro/app/jobs/application_job.rb +0 -2
  225. data/test_apps/dummy_roro/app/mailers/application_mailer.rb +0 -4
  226. data/test_apps/dummy_roro/app/models/application_record.rb +0 -3
  227. data/test_apps/dummy_roro/app/models/concerns/.keep +0 -0
  228. data/test_apps/dummy_roro/app/views/layouts/application.html.erb +0 -15
  229. data/test_apps/dummy_roro/app/views/layouts/mailer.html.erb +0 -13
  230. data/test_apps/dummy_roro/app/views/layouts/mailer.text.erb +0 -1
  231. data/test_apps/dummy_roro/bin/bundle +0 -3
  232. data/test_apps/dummy_roro/bin/rails +0 -4
  233. data/test_apps/dummy_roro/bin/rake +0 -4
  234. data/test_apps/dummy_roro/bin/setup +0 -36
  235. data/test_apps/dummy_roro/bin/update +0 -31
  236. data/test_apps/dummy_roro/bin/yarn +0 -11
  237. data/test_apps/dummy_roro/config.ru +0 -5
  238. data/test_apps/dummy_roro/config/application.rb +0 -19
  239. data/test_apps/dummy_roro/config/boot.rb +0 -4
  240. data/test_apps/dummy_roro/config/cable.yml +0 -10
  241. data/test_apps/dummy_roro/config/credentials.yml.enc +0 -1
  242. data/test_apps/dummy_roro/config/database.yml +0 -20
  243. data/test_apps/dummy_roro/config/environment.rb +0 -5
  244. data/test_apps/dummy_roro/config/environments/development.rb +0 -61
  245. data/test_apps/dummy_roro/config/environments/production.rb +0 -94
  246. data/test_apps/dummy_roro/config/environments/test.rb +0 -46
  247. data/test_apps/dummy_roro/config/initializers/application_controller_renderer.rb +0 -8
  248. data/test_apps/dummy_roro/config/initializers/assets.rb +0 -14
  249. data/test_apps/dummy_roro/config/initializers/backtrace_silencers.rb +0 -7
  250. data/test_apps/dummy_roro/config/initializers/content_security_policy.rb +0 -25
  251. data/test_apps/dummy_roro/config/initializers/cookies_serializer.rb +0 -5
  252. data/test_apps/dummy_roro/config/initializers/filter_parameter_logging.rb +0 -4
  253. data/test_apps/dummy_roro/config/initializers/inflections.rb +0 -16
  254. data/test_apps/dummy_roro/config/initializers/mime_types.rb +0 -4
  255. data/test_apps/dummy_roro/config/initializers/wrap_parameters.rb +0 -14
  256. data/test_apps/dummy_roro/config/locales/en.yml +0 -33
  257. data/test_apps/dummy_roro/config/puma.rb +0 -34
  258. data/test_apps/dummy_roro/config/routes.rb +0 -3
  259. data/test_apps/dummy_roro/config/spring.rb +0 -6
  260. data/test_apps/dummy_roro/config/storage.yml +0 -34
  261. data/test_apps/dummy_roro/db/seeds.rb +0 -7
  262. data/test_apps/dummy_roro/docker-compose.yml +0 -51
  263. data/test_apps/dummy_roro/docker/containers/app/Dockerfile +0 -12
  264. data/test_apps/dummy_roro/docker/containers/app/circleci.env +0 -2
  265. data/test_apps/dummy_roro/docker/containers/app/development.env +0 -2
  266. data/test_apps/dummy_roro/docker/containers/app/production.env +0 -2
  267. data/test_apps/dummy_roro/docker/containers/app/staging.env +0 -2
  268. data/test_apps/dummy_roro/docker/containers/database/.keep +0 -0
  269. data/test_apps/dummy_roro/docker/containers/database/circleci.env +0 -3
  270. data/test_apps/dummy_roro/docker/containers/database/development.env +0 -3
  271. data/test_apps/dummy_roro/docker/containers/database/production.env +0 -3
  272. data/test_apps/dummy_roro/docker/containers/database/staging.env +0 -3
  273. data/test_apps/dummy_roro/docker/containers/web/Dockerfile +0 -18
  274. data/test_apps/dummy_roro/docker/containers/web/app.conf +0 -23
  275. data/test_apps/dummy_roro/docker/containers/web/circleci.env +0 -1
  276. data/test_apps/dummy_roro/docker/containers/web/development.env +0 -1
  277. data/test_apps/dummy_roro/docker/containers/web/production.env +0 -1
  278. data/test_apps/dummy_roro/docker/containers/web/staging.env +0 -1
  279. data/test_apps/dummy_roro/docker/env_files/circleci.env +0 -12
  280. data/test_apps/dummy_roro/docker/env_files/circleci.env.enc +0 -14
  281. data/test_apps/dummy_roro/docker/env_files/production.env +0 -2
  282. data/test_apps/dummy_roro/docker/env_files/production.env.enc +0 -2
  283. data/test_apps/dummy_roro/docker/keys/.keep +0 -0
  284. data/test_apps/dummy_roro/docker/overrides/circleci.yml +0 -19
  285. data/test_apps/dummy_roro/docker/overrides/production.yml +0 -26
  286. data/test_apps/dummy_roro/lib/assets/.keep +0 -0
  287. data/test_apps/dummy_roro/lib/tasks/.keep +0 -0
  288. data/test_apps/dummy_roro/lib/tasks/deploy.rake +0 -126
  289. data/test_apps/dummy_roro/log/.keep +0 -0
  290. data/test_apps/dummy_roro/package.json +0 -5
  291. data/test_apps/dummy_roro/public/404.html +0 -67
  292. data/test_apps/dummy_roro/public/422.html +0 -67
  293. data/test_apps/dummy_roro/public/500.html +0 -66
  294. data/test_apps/dummy_roro/public/apple-touch-icon-precomposed.png +0 -0
  295. data/test_apps/dummy_roro/public/apple-touch-icon.png +0 -0
  296. data/test_apps/dummy_roro/public/favicon.ico +0 -0
  297. data/test_apps/dummy_roro/public/robots.txt +0 -1
  298. data/test_apps/dummy_roro/storage/.keep +0 -0
  299. data/test_apps/dummy_roro/test/application_system_test_case.rb +0 -5
  300. data/test_apps/dummy_roro/test/controllers/.keep +0 -0
  301. data/test_apps/dummy_roro/test/fixtures/.keep +0 -0
  302. data/test_apps/dummy_roro/test/fixtures/files/.keep +0 -0
  303. data/test_apps/dummy_roro/test/helpers/.keep +0 -0
  304. data/test_apps/dummy_roro/test/integration/.keep +0 -0
  305. data/test_apps/dummy_roro/test/mailers/.keep +0 -0
  306. data/test_apps/dummy_roro/test/models/.keep +0 -0
  307. data/test_apps/dummy_roro/test/system/.keep +0 -0
  308. data/test_apps/dummy_roro/test/test_helper.rb +0 -10
  309. data/test_apps/dummy_roro/tmp/.keep +0 -0
  310. data/test_apps/dummy_roro/vendor/.keep +0 -0
  311. data/test_apps/greenfield/.keep +0 -0
  312. data/vendor/cache/actionpack-5.2.2.gem +0 -0
  313. data/vendor/cache/actionview-5.2.2.gem +0 -0
  314. data/vendor/cache/activesupport-5.2.2.gem +0 -0
  315. data/vendor/cache/addressable-2.5.2.gem +0 -0
  316. data/vendor/cache/builder-3.2.3.gem +0 -0
  317. data/vendor/cache/coderay-1.1.2.gem +0 -0
  318. data/vendor/cache/concurrent-ruby-1.1.4.gem +0 -0
  319. data/vendor/cache/crass-1.0.4.gem +0 -0
  320. data/vendor/cache/erubi-1.8.0.gem +0 -0
  321. data/vendor/cache/ffi-1.9.25.gem +0 -0
  322. data/vendor/cache/guard-2.15.0.gem +0 -0
  323. data/vendor/cache/i18n-1.3.0.gem +0 -0
  324. data/vendor/cache/launchy-2.4.3.gem +0 -0
  325. data/vendor/cache/listen-3.1.5.gem +0 -0
  326. data/vendor/cache/loofah-2.2.3.gem +0 -0
  327. data/vendor/cache/lumberjack-1.0.13.gem +0 -0
  328. data/vendor/cache/method_source-0.9.2.gem +0 -0
  329. data/vendor/cache/minitest-5.11.3.gem +0 -0
  330. data/vendor/cache/minitest-rails-3.0.0.gem +0 -0
  331. data/vendor/cache/multi_json-1.13.1.gem +0 -0
  332. data/vendor/cache/net-scp-2.0.0.gem +0 -0
  333. data/vendor/cache/net-ssh-5.2.0.gem +0 -0
  334. data/vendor/cache/notiffany-0.1.1.gem +0 -0
  335. data/vendor/cache/pry-0.12.2.gem +0 -0
  336. data/vendor/cache/public_suffix-3.0.3.gem +0 -0
  337. data/vendor/cache/rack-2.0.6.gem +0 -0
  338. data/vendor/cache/rails-html-sanitizer-1.0.4.gem +0 -0
  339. data/vendor/cache/railties-5.2.2.gem +0 -0
  340. data/vendor/cache/rake-10.5.0.gem +0 -0
  341. data/vendor/cache/rb-fsevent-0.10.3.gem +0 -0
  342. data/vendor/cache/rb-inotify-0.10.0.gem +0 -0
  343. data/vendor/cache/ruby_dep-1.5.0.gem +0 -0
  344. data/vendor/cache/shoulda-3.6.0.gem +0 -0
  345. data/vendor/cache/shoulda-context-1.2.2.gem +0 -0
  346. data/vendor/cache/shoulda-matchers-3.1.2.gem +0 -0
  347. data/vendor/cache/sorcerer-1.0.2.gem +0 -0
  348. data/vendor/cache/thor-0.20.3.gem +0 -0
  349. data/vendor/cache/tzinfo-1.2.5.gem +0 -0
File without changes
@@ -1,81 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- ## Uncomment and set this to only include directories you want to watch
5
- # directories %w(app lib config test spec features) \
6
- # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
-
8
- ## Note: if you are using the `directories` clause above and you are not
9
- ## watching the project directory ('.'), then you will want to move
10
- ## the Guardfile to a watched dir and symlink it back, e.g.
11
- #
12
- # $ mkdir config
13
- # $ mv Guardfile config/
14
- # $ ln -s config/Guardfile .
15
- #
16
- # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
-
18
- guard 'livereload' do
19
- extensions = {
20
- css: :css,
21
- scss: :css,
22
- sass: :css,
23
- js: :js,
24
- coffee: :js,
25
- html: :html,
26
- png: :png,
27
- gif: :gif,
28
- jpg: :jpg,
29
- jpeg: :jpeg,
30
- # less: :less, # uncomment if you want LESS stylesheets done in browser
31
- }
32
-
33
- rails_view_exts = %w(erb haml slim)
34
-
35
- # file types LiveReload may optimize refresh for
36
- compiled_exts = extensions.values.uniq
37
- watch(%r{public/.+\.(#{compiled_exts * '|'})})
38
-
39
- extensions.each do |ext, type|
40
- watch(%r{
41
- (?:app|vendor)
42
- (?:/assets/\w+/(?<path>[^.]+) # path+base without extension
43
- (?<ext>\.#{ext})) # matching extension (must be first encountered)
44
- (?:\.\w+|$) # other extensions
45
- }x) do |m|
46
- path = m[1]
47
- "/assets/#{path}.#{type}"
48
- end
49
- end
50
-
51
- # file needing a full reload of the page anyway
52
- watch(%r{app/views/.+\.(#{rails_view_exts * '|'})$})
53
- watch(%r{app/helpers/.+\.rb})
54
- watch(%r{config/locales/.+\.yml})
55
- end
56
-
57
- guard "minitest", spring: "bin/rails test" do
58
- # with Minitest::Unit
59
- # watch(%r{^test/(.*)\/?test_(.*)\.rb$})
60
- # watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
61
- # watch(%r{^test/test_helper\.rb$}) { 'test' }
62
-
63
- # with Minitest::Spec
64
- # watch(%r{^spec/(.*)_spec\.rb$})
65
- # watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
66
- # watch(%r{^spec/spec_helper\.rb$}) { 'spec' }
67
-
68
- # Rails 4
69
- watch(%r{^app/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
70
- watch(%r{^app/controllers/application_controller\.rb$}) { 'test/controllers' }
71
- watch(%r{^app/controllers/(.+)_controller\.rb$}) { |m| "test/integration/#{m[1]}_test.rb" }
72
- watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" }
73
- watch(%r{^lib/(.+)\.rb$}) { |m| "test/lib/#{m[1]}_test.rb" }
74
- watch(%r{^test/.+_test\.rb$})
75
- watch(%r{^test/test_helper\.rb$}) { 'test' }
76
-
77
- # Rails < 4
78
- # watch(%r{^app/controllers/(.*)\.rb$}) { |m| "test/functional/#{m[1]}_test.rb" }
79
- # watch(%r{^app/helpers/(.*)\.rb$}) { |m| "test/helpers/#{m[1]}_test.rb" }
80
- # watch(%r{^app/models/(.*)\.rb$}) { |m| "test/unit/#{m[1]}_test.rb" }
81
- end
@@ -1,4 +0,0 @@
1
- require 'sshkit'
2
- import '.circleci/deploy.rake'
3
-
4
- task :default => 'docker:deploy'
@@ -1,33 +0,0 @@
1
- defaults: &defaults
2
- working_directory: /tmp
3
-
4
- version: 2
5
-
6
- jobs:
7
-
8
- build:
9
- machine: true
10
- steps:
11
- - checkout
12
- - add_ssh_keys
13
-
14
- - run: gem install handsome_fencer-circle_c_i
15
- - run: handsome_fencer-circle_c_i expose circleci
16
- - run: handsome_fencer-circle_c_i expose development
17
- - run: echo 'source docker/env_files/circleci.env' >> $BASH_ENV
18
- - run: docker-compose build
19
- - run: docker-compose up -d
20
- - run: docker-compose exec app bin/rails db:create db:migrate
21
- - run: docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
22
- - run:
23
- name: Tag app image
24
- command: docker tag $(docker images | grep project_app | awk '{ print $3 }') ${DOCKERHUB_ORG_NAME}/${APP_NAME}_app:$DEPLOY_TAG
25
- - run:
26
- name: Tag web image
27
- command: docker tag $(docker images | grep project_web | awk '{ print $3 }') ${DOCKERHUB_ORG_NAME}/${APP_NAME}_web:$DEPLOY_TAG
28
-
29
-
30
- - run: docker push ${DOCKERHUB_ORG_NAME}/${APP_NAME}_app:$DEPLOY_TAG
31
- - run: docker push ${DOCKERHUB_ORG_NAME}/${APP_NAME}_web:$DEPLOY_TAG
32
-
33
- - run: rake --rakefile .circleci/Rakefile
@@ -1,69 +0,0 @@
1
- defaults: &defaults
2
- working_directory: /tmp
3
-
4
- version: 2
5
-
6
- jobs:
7
-
8
- build:
9
- machine: true
10
- steps:
11
- - checkout
12
- - run: gem install handsome_fencer-circle_c_i
13
- - run: handsome_fencer-circle_c_i expose circleci
14
- - run: handsome_fencer-circle_c_i expose development
15
- - run: echo 'source docker/env_files/circleci.env' >> $BASH_ENV
16
- - run: docker-compose up -d app --build
17
- - run: docker-compose exec app bin/rails db:create db:migrate
18
- - run: docker-compose exec app bin/rails test
19
-
20
- push:
21
- machine: true
22
- steps:
23
- - checkout
24
- - run: gem install handsome_fencer-circle_c_i
25
- - run: handsome_fencer-circle_c_i expose circleci
26
- - run: handsome_fencer-circle_c_i expose development
27
- - run: echo 'source docker/env_files/circleci.env' >> $BASH_ENV
28
- - run: docker-compose build app web
29
- - run: docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
30
- - run:
31
- name: Tag app image
32
- command: docker tag $(docker images | grep project_app | awk '{ print $3 }') ${DOCKERHUB_ORG_NAME}/${APP_NAME}_app:$DEPLOY_TAG
33
- - run:
34
- name: Tag web image
35
- command: docker tag $(docker images | grep project_web | awk '{ print $3 }') ${DOCKERHUB_ORG_NAME}/${APP_NAME}_web:$DEPLOY_TAG
36
-
37
-
38
- - run: docker push ${DOCKERHUB_ORG_NAME}/${APP_NAME}_app:$DEPLOY_TAG
39
- - run: docker push ${DOCKERHUB_ORG_NAME}/${APP_NAME}_web:$DEPLOY_TAG
40
-
41
- deploy:
42
- machine: true
43
- steps:
44
- - checkout
45
- - add_ssh_keys
46
- - run: gem install handsome_fencer-circle_c_i
47
- - run: handsome_fencer-circle_c_i expose circleci
48
- - run: handsome_fencer-circle_c_i expose development
49
- - run: echo 'source docker/env_files/circleci.env' >> $BASH_ENV
50
-
51
- - run: rake --rakefile .circleci/Rakefile
52
-
53
- workflows:
54
- version: 2
55
- build-and-deploy:
56
- jobs:
57
- - build
58
- - push:
59
- requires:
60
- - build
61
- filters:
62
- branches:
63
- only: master
64
- - deploy:
65
- requires:
66
- - push
67
- filters:
68
- branches:
69
- only: master
@@ -1,62 +0,0 @@
1
- defaults: &defaults
2
- working_directory: /tmp
3
-
4
- version: 2
5
-
6
- jobs:
7
-
8
- build:
9
- machine: true
10
- steps:
11
- - checkout
12
- - run: gem install handsome_fencer-circle_c_i
13
- - run: ruby .circleci/expose_env.rb
14
- - run: docker-compose build dev_app database
15
- - run: docker-compose run dev_app bin/rails db:create db:migrate test
16
-
17
- push:
18
- docker:
19
- - image: circleci/ruby:2.5.1-node-browsers
20
- environment:
21
- BASH_ENV: .env/circle/deploy.env
22
- steps:
23
- - checkout
24
- - setup_remote_docker
25
- - run: gem install handsomefencer-environment
26
- - run: ruby expose_env.rb
27
- - run: docker-compose up -d --build
28
- - run:
29
- name: Tag web image
30
- command: docker tag $(docker images | grep project_web | awk '{ print $3 }') rennmappe/bacchanal_web:$DEPLOY_TAG
31
- - run: docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
32
- - run: docker push rennmappe/bacchanal_web:$DEPLOY_TAG
33
-
34
- deploy:
35
- docker:
36
- - image: circleci/ruby:2.5.1-node-browsers
37
- environment:
38
- BASH_ENV: .env/circle/deploy.env
39
- steps:
40
- - checkout
41
- - add_ssh_keys
42
- - run: bundle install --without production
43
- - run: ruby expose_env.rb
44
- - run: bin/rails docker:deploy
45
-
46
- workflows:
47
- version: 2
48
- build-and-deploy:
49
- jobs:
50
- - build
51
- - push:
52
- requires:
53
- - build
54
- filters:
55
- branches:
56
- only: master
57
- - deploy:
58
- requires:
59
- - push
60
- filters:
61
- branches:
62
- only: master
@@ -1,127 +0,0 @@
1
- # use SSHKit directly instead of Capistrano
2
- require 'sshkit'
3
- require 'sshkit/dsl'
4
- include SSHKit::DSL
5
-
6
- deploy_tag = ENV['DEPLOY_TAG']
7
- app_name = ENV['APP_NAME']
8
- hostname = ENV['SERVER_HOST']
9
- user = ENV['SERVER_USER']
10
- dockerhub_user = ENV['DOCKERHUB_USER']
11
- dockerhub_pass = ENV['DOCKERHUB_PASS']
12
- dockerhub_org = ENV['DOCKERHUB_ORG']
13
- port = ENV['SERVER_PORT']
14
- deploy_env = ENV['DEPLOY_ENV'] || :production
15
- deploy_path = ENV['APP_NAME']
16
-
17
- server = SSHKit::Host.new(hostname: hostname, port: port, user: user)
18
-
19
- namespace :deploy do
20
-
21
- desc 'copy to server files needed to run and manage Docker containers'
22
- task :configs do
23
-
24
- on server do
25
- within deploy_path do
26
- upload! File.expand_path('../docker-compose.yml', __dir__), 'docker-compose.yml'
27
-
28
- upload! File.expand_path('../docker', __dir__), '.', recursive: true
29
- execute 'apt', 'install', '-y', 'ruby'
30
- execute 'gem', 'install', 'handsome_fencer-circle_c_i'
31
- execute 'handsome_fencer-circle_c_i', 'expose', 'production'
32
- execute :source, './docker/env_files/production.env'
33
- end
34
- end
35
- end
36
-
37
- # desc 'copy production key to server'
38
- # task :production_key do
39
- #
40
- # on server do
41
- # within deploy_path do
42
- #
43
- # upload! '.circleci/keys/production.key', '.circleci/keys/production.key'
44
- # end
45
- # end
46
- # end
47
- #
48
- # desc 'expose production environment'
49
- # task :expose_production_environment do
50
- #
51
- # on server do
52
- # within deploy_path do
53
- # execute 'snap', 'install', 'ruby', '--classic'
54
- # execute 'gem', 'install', 'handsome_fencer-circle_c_i'
55
- # execute 'handsome_fencer-circle_c_i', 'expose', 'production'
56
- # end
57
- # end
58
- # end
59
- end
60
-
61
- namespace :docker do
62
-
63
- desc 'logs into Docker Hub for pushing and pulling'
64
- task :login do
65
- on server do
66
- execute "mkdir -p #{deploy_path}"
67
- within deploy_path do
68
- execute 'docker', 'login', '-u', dockerhub_user, '-p', dockerhub_pass
69
- end
70
- end
71
- end
72
-
73
- desc 'stops all Docker containers via Docker Compose'
74
- task stop: 'deploy:configs' do
75
- on server do
76
- within deploy_path do
77
- with rails_env: deploy_env, deploy_tag: deploy_tag do
78
- execute 'docker-compose', 'stop'
79
- end
80
- end
81
- end
82
- end
83
-
84
- desc 'starts all Docker containers via Docker Compose'
85
- task start: 'deploy:configs' do
86
- on server do
87
- within deploy_path do
88
- with rails_env: deploy_env, deploy_tag: deploy_tag do
89
- execute 'docker-compose', 'docker-compose', '-f', 'docker-compose.yml', '-f', 'docker/overrides/docker-compose.production.yml',
90
- 'up', '-d'
91
- execute 'echo', deploy_tag , '>', 'deploy.tag'
92
- end
93
- end
94
- end
95
- end
96
-
97
- desc 'pulls images from Docker Hub'
98
- task pull: 'docker:login' do
99
- on server do
100
- within deploy_path do
101
- images = [
102
- "#{dockerhub_org}/#{app_name}_app:#{deploy_tag}",
103
- "#{dockerhub_org}/#{app_name}_web:#{deploy_tag}",
104
- "postgres:9.4.5"
105
- ]
106
- images.each do |image|
107
- execute 'docker', 'pull', "#{image}"
108
- end
109
- end
110
- end
111
- end
112
-
113
- desc 'runs database migrations in application container via Docker Compose'
114
- task migrate: 'deploy:configs' do
115
- on server do
116
- within deploy_path do
117
- with rails_env: deploy_env, deploy_tag: deploy_tag do
118
- execute 'docker-compose', '-f', 'docker-compose.yml', '-f', 'docker/overrides/docker-compose.production.yml',
119
- 'exec', 'app', "bin/rails", 'db:create', 'db:migrate'
120
- end
121
- end
122
- end
123
- end
124
-
125
- desc 'pulls images, stops old containers, updates the database, and starts new containers'
126
- task deploy: %w{docker:pull docker:stop docker:migrate docker:start }
127
- end
@@ -1,71 +0,0 @@
1
- defaults: &defaults
2
- working_directory: /tmp
3
-
4
- version: 2
5
-
6
- jobs:
7
-
8
- build:
9
- machine: true
10
- steps:
11
- - checkout
12
- - run: gem install handsome_fencer-circle_c_i
13
- - run: handsome_fencer-circle_c_i expose circleci
14
- - run: handsome_fencer-circle_c_i expose development
15
- - run: echo 'source docker/env_files/circleci.env' >> $BASH_ENV
16
- - run: docker-compose build
17
- - run: docker-compose up -d
18
- - run: docker-compose exec app bin/rails db:create db:migrate
19
-
20
- push:
21
- machine: true
22
- steps:
23
- - checkout
24
- - run: gem install handsome_fencer-circle_c_i
25
- - run: handsome_fencer-circle_c_i expose circleci
26
- - run: handsome_fencer-circle_c_i expose development
27
- - run: echo 'source docker/env_files/circleci.env' >> $BASH_ENV
28
- - run: docker-compose build
29
- - run: docker-compose up -d
30
- - run: docker-compose exec app bin/rails db:create db:migrate
31
- - run: docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
32
- - run:
33
- name: Tag app image
34
- command: docker tag $(docker images | grep project_app | awk '{ print $3 }') ${DOCKERHUB_ORG_NAME}/${APP_NAME}_app:$DEPLOY_TAG
35
- - run:
36
- name: Tag web image
37
- command: docker tag $(docker images | grep project_web | awk '{ print $3 }') ${DOCKERHUB_ORG_NAME}/${APP_NAME}_web:$DEPLOY_TAG
38
-
39
-
40
- - run: docker push ${DOCKERHUB_ORG_NAME}/${APP_NAME}_app:$DEPLOY_TAG
41
- - run: docker push ${DOCKERHUB_ORG_NAME}/${APP_NAME}_web:$DEPLOY_TAG
42
-
43
- deploy:
44
- machine: true
45
- steps:
46
- - checkout
47
- - add_ssh_keys
48
- - run: gem install handsome_fencer-circle_c_i
49
- - run: handsome_fencer-circle_c_i expose circleci
50
- - run: handsome_fencer-circle_c_i expose development
51
- - run: echo 'source docker/env_files/circleci.env' >> $BASH_ENV
52
-
53
- - run: rake --rakefile .circleci/Rakefile
54
-
55
- workflows:
56
- version: 2
57
- build-and-deploy:
58
- jobs:
59
- - build
60
- - push:
61
- requires:
62
- - build
63
- filters:
64
- branches:
65
- only: master
66
- - deploy:
67
- requires:
68
- - push
69
- filters:
70
- branches:
71
- only: master