vagrant-skytap 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (327) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/lib/vagrant-skytap/action/add_vm_to_environment.rb +4 -4
  4. data/lib/vagrant-skytap/action/compose_environment.rb +131 -0
  5. data/lib/vagrant-skytap/action/create_environment.rb +3 -1
  6. data/lib/vagrant-skytap/action/initialize_api_client.rb +6 -5
  7. data/lib/vagrant-skytap/action/set_up_vm.rb +3 -1
  8. data/lib/vagrant-skytap/action/store_extra_data.rb +4 -2
  9. data/lib/vagrant-skytap/action.rb +4 -17
  10. data/lib/vagrant-skytap/api/environment.rb +53 -25
  11. data/lib/vagrant-skytap/api/vm.rb +9 -3
  12. data/lib/vagrant-skytap/command/up.rb +46 -30
  13. data/lib/vagrant-skytap/errors.rb +4 -0
  14. data/lib/vagrant-skytap/version.rb +1 -1
  15. data/locales/en.yml +5 -1
  16. data/spec/unit/actions/compose_environment_spec.rb +101 -0
  17. data/spec/unit/environment_spec.rb +26 -45
  18. data/spec/unit/support/shared/skytap_context.rb +5 -0
  19. data/vagrant-skytap.gemspec +3 -3
  20. metadata +9 -311
  21. data/.byebug_history +0 -256
  22. data/.project +0 -11
  23. data/_patches-20160112/0 +0 -388
  24. data/_patches-20160112/1 +0 -82
  25. data/_patches-20160112/2 +0 -239
  26. data/_patches-20160112/COMPLETED-ABOVE-THIS-LINE +0 -4
  27. data/_patches-20160112/COMPLETED-BELOW-THIS-LINE +0 -4
  28. data/_patches-20160112/CR-ABOVE-THIS-LINE +0 -4
  29. data/_patches-20160112/CR-BELOW-THIS-LINE +0 -4
  30. data/_patches-20160112/WIP-ABOVE-THIS-LINE +0 -4
  31. data/_patches-20160112/WIP-BELOW-THIS-LINE +0 -4
  32. data/_patches-20160112/acceptance-test-runner +0 -29
  33. data/_patches-20160112/ansible-1 +0 -92
  34. data/_patches-20160112/cache-api-client-in-up +0 -40
  35. data/_patches-20160112/dead-code-in-actions +0 -44
  36. data/_patches-20160112/debug-changes +0 -42
  37. data/_patches-20160112/demo-rails-app +0 -1276
  38. data/_patches-20160112/eng-10166-halt-spec +0 -40
  39. data/_patches-20160112/eng-10256 +0 -527
  40. data/_patches-20160112/eng-10256-2 +0 -162
  41. data/_patches-20160112/eng-10256-ubuntu-testing +0 -88
  42. data/_patches-20160112/eng-10269-test-stuff +0 -87
  43. data/_patches-20160112/eng-10269-wtf +0 -119
  44. data/_patches-20160112/eng-10369 +0 -143
  45. data/_patches-20160112/eng-10369-tmp +0 -60
  46. data/_patches-20160112/eng-10919 +0 -56
  47. data/_patches-20160112/eng-11177-fix-actions-requires +0 -44
  48. data/_patches-20160112/eng-11442 +0 -4
  49. data/_patches-20160112/eng-11616 +0 -403
  50. data/_patches-20160112/eng-11616-2 +0 -67
  51. data/_patches-20160112/eng-11616-actual +0 -184
  52. data/_patches-20160112/eng-11625a +0 -4
  53. data/_patches-20160112/eng-11711 +0 -85
  54. data/_patches-20160112/eng-12232-command-spec +0 -236
  55. data/_patches-20160112/eng-12235 +0 -83
  56. data/_patches-20160112/eng-12235-override-refactor +0 -140
  57. data/_patches-20160112/eng-12240 +0 -103
  58. data/_patches-20160112/eng-12249 +0 -40
  59. data/_patches-20160112/eng-12301 +0 -50
  60. data/_patches-20160112/eng-12843 +0 -95
  61. data/_patches-20160112/env-source +0 -112
  62. data/_patches-20160112/frickin-vagrant-spec +0 -163
  63. data/_patches-20160112/gem-pre-version +0 -14
  64. data/_patches-20160112/gems-old +0 -9
  65. data/_patches-20160112/googles-specs +0 -713
  66. data/_patches-20160112/local-configs-ignore +0 -61
  67. data/_patches-20160112/misc +0 -79
  68. data/_patches-20160112/network-unreachable +0 -31
  69. data/_patches-20160112/new-boxfile +0 -288
  70. data/_patches-20160112/parallelization-maybe +0 -198
  71. data/_patches-20160112/read-state +0 -23
  72. data/_patches-20160112/refactor-to-use-public_address-cap +0 -25
  73. data/_patches-20160112/series +0 -60
  74. data/_patches-20160112/status +0 -12
  75. data/_patches-20160112/test-move-env-data +0 -231
  76. data/_patches-20160112/test-vagrantfile-vm1 +0 -167
  77. data/_patches-20160112/the_version_in_0.1.13.pre1 +0 -598
  78. data/_patches-20160112/vagrant-spec-mock-api +0 -137
  79. data/_patches-20160112/vagrant-vmware-plugin +0 -233
  80. data/_patches-20160112/vagrantfile +0 -403
  81. data/_patches-20160112/vagrantfile-for-acceptance-tests +0 -29
  82. data/_patches-20160112/vagrantfile-for-nick +0 -95
  83. data/_patches-20160112/vagrantfiles-to-forget-what-they-are-for +0 -134
  84. data/_patches-20160112/vm-vanished +0 -42
  85. data/_patches-20160112a/01 +0 -148
  86. data/_patches-20160112a/2 +0 -239
  87. data/_patches-20160112a/COMPLETED-ABOVE-THIS-LINE +0 -4
  88. data/_patches-20160112a/COMPLETED-BELOW-THIS-LINE +0 -4
  89. data/_patches-20160112a/CR-ABOVE-THIS-LINE +0 -4
  90. data/_patches-20160112a/CR-BELOW-THIS-LINE +0 -4
  91. data/_patches-20160112a/WIP-ABOVE-THIS-LINE +0 -4
  92. data/_patches-20160112a/WIP-BELOW-THIS-LINE +0 -4
  93. data/_patches-20160112a/acceptance-test-runner +0 -29
  94. data/_patches-20160112a/ansible-1 +0 -92
  95. data/_patches-20160112a/cache-api-client-in-up +0 -40
  96. data/_patches-20160112a/dead-code-in-actions +0 -44
  97. data/_patches-20160112a/debug-changes +0 -42
  98. data/_patches-20160112a/demo-rails-app +0 -1276
  99. data/_patches-20160112a/eng-10166-halt-spec +0 -40
  100. data/_patches-20160112a/eng-10256-ubuntu-testing +0 -88
  101. data/_patches-20160112a/eng-10269-test-stuff +0 -87
  102. data/_patches-20160112a/eng-10269-wtf +0 -119
  103. data/_patches-20160112a/eng-10369 +0 -143
  104. data/_patches-20160112a/eng-10369-tmp +0 -60
  105. data/_patches-20160112a/eng-10919 +0 -56
  106. data/_patches-20160112a/eng-11177-fix-actions-requires +0 -44
  107. data/_patches-20160112a/eng-11442 +0 -4
  108. data/_patches-20160112a/eng-11616 +0 -403
  109. data/_patches-20160112a/eng-11616-2 +0 -67
  110. data/_patches-20160112a/eng-11616-actual +0 -184
  111. data/_patches-20160112a/eng-11625a +0 -4
  112. data/_patches-20160112a/eng-11711 +0 -85
  113. data/_patches-20160112a/eng-12232-command-spec +0 -236
  114. data/_patches-20160112a/eng-12235 +0 -83
  115. data/_patches-20160112a/eng-12235-override-refactor +0 -140
  116. data/_patches-20160112a/eng-12240 +0 -103
  117. data/_patches-20160112a/eng-12249 +0 -40
  118. data/_patches-20160112a/eng-12301 +0 -50
  119. data/_patches-20160112a/eng-12843 +0 -95
  120. data/_patches-20160112a/env-source +0 -112
  121. data/_patches-20160112a/frickin-vagrant-spec +0 -163
  122. data/_patches-20160112a/gem-pre-version +0 -14
  123. data/_patches-20160112a/gems-old +0 -9
  124. data/_patches-20160112a/googles-specs +0 -713
  125. data/_patches-20160112a/local-configs-ignore +0 -61
  126. data/_patches-20160112a/misc +0 -79
  127. data/_patches-20160112a/network-unreachable +0 -31
  128. data/_patches-20160112a/new-boxfile +0 -288
  129. data/_patches-20160112a/parallelization-maybe +0 -198
  130. data/_patches-20160112a/read-state +0 -23
  131. data/_patches-20160112a/refactor-to-use-public_address-cap +0 -25
  132. data/_patches-20160112a/series +0 -58
  133. data/_patches-20160112a/status +0 -14
  134. data/_patches-20160112a/test-move-env-data +0 -231
  135. data/_patches-20160112a/test-vagrantfile-vm1 +0 -167
  136. data/_patches-20160112a/the_version_in_0.1.13.pre1 +0 -612
  137. data/_patches-20160112a/then-copy-the-newer-files +0 -632
  138. data/_patches-20160112a/vagrant-spec-mock-api +0 -137
  139. data/_patches-20160112a/vagrant-vmware-plugin +0 -233
  140. data/_patches-20160112a/vagrantfile +0 -403
  141. data/_patches-20160112a/vagrantfile-for-acceptance-tests +0 -29
  142. data/_patches-20160112a/vagrantfile-for-nick +0 -95
  143. data/_patches-20160112a/vagrantfiles-to-forget-what-they-are-for +0 -134
  144. data/_patches-20160112a/vm-vanished +0 -42
  145. data/_patches-20160113/COMPLETED-ABOVE-THIS-LINE +0 -4
  146. data/_patches-20160113/COMPLETED-BELOW-THIS-LINE +0 -4
  147. data/_patches-20160113/CR-ABOVE-THIS-LINE +0 -4
  148. data/_patches-20160113/CR-BELOW-THIS-LINE +0 -4
  149. data/_patches-20160113/WIP-ABOVE-THIS-LINE +0 -4
  150. data/_patches-20160113/WIP-BELOW-THIS-LINE +0 -4
  151. data/_patches-20160113/acceptance-test-runner +0 -29
  152. data/_patches-20160113/ansible-1 +0 -92
  153. data/_patches-20160113/cache-api-client-in-up +0 -40
  154. data/_patches-20160113/dead-code-in-actions +0 -44
  155. data/_patches-20160113/debug-changes +0 -55
  156. data/_patches-20160113/demo-rails-app +0 -1276
  157. data/_patches-20160113/eng-10166-halt-spec +0 -40
  158. data/_patches-20160113/eng-10256 +0 -543
  159. data/_patches-20160113/eng-10256-ubuntu-testing +0 -88
  160. data/_patches-20160113/eng-10269-test-stuff +0 -87
  161. data/_patches-20160113/eng-10269-wtf +0 -119
  162. data/_patches-20160113/eng-10369 +0 -143
  163. data/_patches-20160113/eng-10369-tmp +0 -60
  164. data/_patches-20160113/eng-10919 +0 -56
  165. data/_patches-20160113/eng-11177-fix-actions-requires +0 -44
  166. data/_patches-20160113/eng-11442 +0 -4
  167. data/_patches-20160113/eng-11616 +0 -403
  168. data/_patches-20160113/eng-11616-2 +0 -67
  169. data/_patches-20160113/eng-11616-actual +0 -184
  170. data/_patches-20160113/eng-11625a +0 -4
  171. data/_patches-20160113/eng-11711 +0 -85
  172. data/_patches-20160113/eng-12232-command-spec +0 -236
  173. data/_patches-20160113/eng-12235 +0 -83
  174. data/_patches-20160113/eng-12235-override-refactor +0 -140
  175. data/_patches-20160113/eng-12240 +0 -103
  176. data/_patches-20160113/eng-12249 +0 -40
  177. data/_patches-20160113/eng-12301 +0 -50
  178. data/_patches-20160113/eng-12720 +0 -47
  179. data/_patches-20160113/eng-12843 +0 -95
  180. data/_patches-20160113/env-source +0 -112
  181. data/_patches-20160113/frickin-vagrant-spec +0 -163
  182. data/_patches-20160113/gem-pre-version +0 -14
  183. data/_patches-20160113/gems-old +0 -9
  184. data/_patches-20160113/googles-specs +0 -713
  185. data/_patches-20160113/local-configs-ignore +0 -61
  186. data/_patches-20160113/misc +0 -79
  187. data/_patches-20160113/network-unreachable +0 -31
  188. data/_patches-20160113/new-boxfile +0 -288
  189. data/_patches-20160113/parallelization-maybe +0 -198
  190. data/_patches-20160113/read-state +0 -23
  191. data/_patches-20160113/refactor-to-use-public_address-cap +0 -25
  192. data/_patches-20160113/series +0 -56
  193. data/_patches-20160113/status +0 -14
  194. data/_patches-20160113/test-move-env-data +0 -231
  195. data/_patches-20160113/test-vagrantfile-vm1 +0 -167
  196. data/_patches-20160113/vagrant-spec-mock-api +0 -137
  197. data/_patches-20160113/vagrant-vmware-plugin +0 -233
  198. data/_patches-20160113/vagrantfile +0 -403
  199. data/_patches-20160113/vagrantfile-for-acceptance-tests +0 -29
  200. data/_patches-20160113/vagrantfile-for-nick +0 -95
  201. data/_patches-20160113/vagrantfiles-to-forget-what-they-are-for +0 -134
  202. data/_patches-20160113/vm-vanished +0 -42
  203. data/_patches-20160118/COMPLETED-ABOVE-THIS-LINE +0 -4
  204. data/_patches-20160118/COMPLETED-BELOW-THIS-LINE +0 -4
  205. data/_patches-20160118/CR-ABOVE-THIS-LINE +0 -4
  206. data/_patches-20160118/CR-BELOW-THIS-LINE +0 -4
  207. data/_patches-20160118/WIP-ABOVE-THIS-LINE +0 -4
  208. data/_patches-20160118/WIP-BELOW-THIS-LINE +0 -4
  209. data/_patches-20160118/acceptance-test-runner +0 -29
  210. data/_patches-20160118/ansible-1 +0 -92
  211. data/_patches-20160118/cache-api-client-in-up +0 -40
  212. data/_patches-20160118/dead-code-in-actions +0 -44
  213. data/_patches-20160118/debug-changes +0 -55
  214. data/_patches-20160118/demo-rails-app +0 -1276
  215. data/_patches-20160118/eng-10166-halt-spec +0 -40
  216. data/_patches-20160118/eng-10256 +0 -554
  217. data/_patches-20160118/eng-10256-cr +0 -314
  218. data/_patches-20160118/eng-10256-ubuntu-testing +0 -88
  219. data/_patches-20160118/eng-10269-test-stuff +0 -87
  220. data/_patches-20160118/eng-10269-wtf +0 -119
  221. data/_patches-20160118/eng-10369 +0 -143
  222. data/_patches-20160118/eng-10369-tmp +0 -60
  223. data/_patches-20160118/eng-10919 +0 -56
  224. data/_patches-20160118/eng-11177-fix-actions-requires +0 -44
  225. data/_patches-20160118/eng-11442 +0 -4
  226. data/_patches-20160118/eng-11616 +0 -403
  227. data/_patches-20160118/eng-11616-2 +0 -67
  228. data/_patches-20160118/eng-11616-actual +0 -184
  229. data/_patches-20160118/eng-11625a +0 -4
  230. data/_patches-20160118/eng-11711 +0 -85
  231. data/_patches-20160118/eng-12232-command-spec +0 -236
  232. data/_patches-20160118/eng-12235 +0 -83
  233. data/_patches-20160118/eng-12235-override-refactor +0 -140
  234. data/_patches-20160118/eng-12240 +0 -103
  235. data/_patches-20160118/eng-12249 +0 -40
  236. data/_patches-20160118/eng-12301 +0 -50
  237. data/_patches-20160118/eng-12720 +0 -74
  238. data/_patches-20160118/eng-12843 +0 -95
  239. data/_patches-20160118/eng-13040 +0 -291
  240. data/_patches-20160118/env-source +0 -112
  241. data/_patches-20160118/frickin-vagrant-spec +0 -163
  242. data/_patches-20160118/gem-pre-version +0 -14
  243. data/_patches-20160118/gems-old +0 -9
  244. data/_patches-20160118/googles-specs +0 -713
  245. data/_patches-20160118/local-configs-ignore +0 -61
  246. data/_patches-20160118/misc +0 -79
  247. data/_patches-20160118/network-unreachable +0 -31
  248. data/_patches-20160118/new-boxfile +0 -288
  249. data/_patches-20160118/parallelization-maybe +0 -198
  250. data/_patches-20160118/port-forwarding-processes +0 -87
  251. data/_patches-20160118/read-state +0 -23
  252. data/_patches-20160118/refactor-to-use-public_address-cap +0 -25
  253. data/_patches-20160118/series +0 -59
  254. data/_patches-20160118/status +0 -13
  255. data/_patches-20160118/test-move-env-data +0 -231
  256. data/_patches-20160118/test-vagrantfile-vm1 +0 -167
  257. data/_patches-20160118/vagrant-spec-mock-api +0 -137
  258. data/_patches-20160118/vagrant-vmware-plugin +0 -233
  259. data/_patches-20160118/vagrantfile +0 -403
  260. data/_patches-20160118/vagrantfile-for-acceptance-tests +0 -29
  261. data/_patches-20160118/vagrantfile-for-nick +0 -95
  262. data/_patches-20160118/vagrantfiles-to-forget-what-they-are-for +0 -134
  263. data/_patches-20160118/vm-vanished +0 -42
  264. data/_patches-20160118a/COMPLETED-ABOVE-THIS-LINE +0 -4
  265. data/_patches-20160118a/COMPLETED-BELOW-THIS-LINE +0 -4
  266. data/_patches-20160118a/CR-ABOVE-THIS-LINE +0 -4
  267. data/_patches-20160118a/CR-BELOW-THIS-LINE +0 -4
  268. data/_patches-20160118a/WIP-ABOVE-THIS-LINE +0 -4
  269. data/_patches-20160118a/WIP-BELOW-THIS-LINE +0 -4
  270. data/_patches-20160118a/acceptance-test-runner +0 -29
  271. data/_patches-20160118a/ansible-1 +0 -92
  272. data/_patches-20160118a/bar +0 -189
  273. data/_patches-20160118a/cache-api-client-in-up +0 -40
  274. data/_patches-20160118a/dead-code-in-actions +0 -44
  275. data/_patches-20160118a/debug-changes +0 -55
  276. data/_patches-20160118a/demo-rails-app +0 -1276
  277. data/_patches-20160118a/eng-10166-halt-spec +0 -40
  278. data/_patches-20160118a/eng-10256 +0 -554
  279. data/_patches-20160118a/eng-10256-cr +0 -314
  280. data/_patches-20160118a/eng-10256-ubuntu-testing +0 -88
  281. data/_patches-20160118a/eng-10269-test-stuff +0 -87
  282. data/_patches-20160118a/eng-10269-wtf +0 -119
  283. data/_patches-20160118a/eng-10369 +0 -143
  284. data/_patches-20160118a/eng-10369-tmp +0 -60
  285. data/_patches-20160118a/eng-10919 +0 -56
  286. data/_patches-20160118a/eng-11177-fix-actions-requires +0 -44
  287. data/_patches-20160118a/eng-11442 +0 -4
  288. data/_patches-20160118a/eng-11616 +0 -403
  289. data/_patches-20160118a/eng-11616-2 +0 -67
  290. data/_patches-20160118a/eng-11616-actual +0 -184
  291. data/_patches-20160118a/eng-11625a +0 -4
  292. data/_patches-20160118a/eng-11711 +0 -85
  293. data/_patches-20160118a/eng-12232-command-spec +0 -236
  294. data/_patches-20160118a/eng-12235 +0 -83
  295. data/_patches-20160118a/eng-12235-override-refactor +0 -140
  296. data/_patches-20160118a/eng-12240 +0 -103
  297. data/_patches-20160118a/eng-12249 +0 -40
  298. data/_patches-20160118a/eng-12301 +0 -50
  299. data/_patches-20160118a/eng-12720 +0 -74
  300. data/_patches-20160118a/eng-12843 +0 -95
  301. data/_patches-20160118a/eng-13040 +0 -291
  302. data/_patches-20160118a/env-source +0 -112
  303. data/_patches-20160118a/foo +0 -169
  304. data/_patches-20160118a/frickin-vagrant-spec +0 -163
  305. data/_patches-20160118a/gem-pre-version +0 -14
  306. data/_patches-20160118a/gems-old +0 -9
  307. data/_patches-20160118a/googles-specs +0 -713
  308. data/_patches-20160118a/guestport-madness +0 -59
  309. data/_patches-20160118a/local-configs-ignore +0 -61
  310. data/_patches-20160118a/misc +0 -79
  311. data/_patches-20160118a/network-unreachable +0 -31
  312. data/_patches-20160118a/new-boxfile +0 -288
  313. data/_patches-20160118a/parallelization-maybe +0 -198
  314. data/_patches-20160118a/port-forwarding-processes +0 -87
  315. data/_patches-20160118a/read-state +0 -23
  316. data/_patches-20160118a/refactor-to-use-public_address-cap +0 -25
  317. data/_patches-20160118a/series +0 -62
  318. data/_patches-20160118a/status +0 -14
  319. data/_patches-20160118a/test-move-env-data +0 -231
  320. data/_patches-20160118a/test-vagrantfile-vm1 +0 -167
  321. data/_patches-20160118a/vagrant-spec-mock-api +0 -137
  322. data/_patches-20160118a/vagrant-vmware-plugin +0 -233
  323. data/_patches-20160118a/vagrantfile +0 -403
  324. data/_patches-20160118a/vagrantfile-for-acceptance-tests +0 -29
  325. data/_patches-20160118a/vagrantfile-for-nick +0 -95
  326. data/_patches-20160118a/vagrantfiles-to-forget-what-they-are-for +0 -134
  327. data/_patches-20160118a/vm-vanished +0 -42
@@ -1,1276 +0,0 @@
1
- # HG changeset patch
2
- # Parent 0de915548d692a2873925b4132f440d53cf1b350
3
- diff --git a/provisioning/demo/.gitignore b/provisioning/demo/.gitignore
4
- new file mode 100644
5
- --- /dev/null
6
- +++ b/provisioning/demo/.gitignore
7
- @@ -0,0 +1,17 @@
8
- +# See https://help.github.com/articles/ignoring-files for more about ignoring files.
9
- +#
10
- +# If you find yourself ignoring temporary files generated by your text editor
11
- +# or operating system, you probably want to add a global ignore instead:
12
- +# git config --global core.excludesfile '~/.gitignore_global'
13
- +
14
- +# Ignore bundler config.
15
- +/.bundle
16
- +
17
- +# Ignore the default SQLite database.
18
- +/db/*.sqlite3
19
- +/db/*.sqlite3-journal
20
- +
21
- +# Ignore all logfiles and tempfiles.
22
- +/log/*
23
- +!/log/.keep
24
- +/tmp
25
- diff --git a/provisioning/demo/Gemfile b/provisioning/demo/Gemfile
26
- new file mode 100644
27
- --- /dev/null
28
- +++ b/provisioning/demo/Gemfile
29
- @@ -0,0 +1,47 @@
30
- +source 'https://rubygems.org'
31
- +
32
- +
33
- +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
34
- +gem 'rails', '4.2.4'
35
- +# Use sqlite3 as the database for Active Record
36
- +gem 'sqlite3'
37
- +# Use SCSS for stylesheets
38
- +gem 'sass-rails', '~> 5.0'
39
- +# Use Uglifier as compressor for JavaScript assets
40
- +gem 'uglifier', '>= 1.3.0'
41
- +# Use CoffeeScript for .coffee assets and views
42
- +gem 'coffee-rails', '~> 4.1.0'
43
- +# See https://github.com/rails/execjs#readme for more supported runtimes
44
- +# gem 'therubyracer', platforms: :ruby
45
- +
46
- +# Use jquery as the JavaScript library
47
- +gem 'jquery-rails'
48
- +# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
49
- +gem 'turbolinks'
50
- +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
51
- +gem 'jbuilder', '~> 2.0'
52
- +# bundle exec rake doc:rails generates the API under doc/api.
53
- +gem 'sdoc', '~> 0.4.0', group: :doc
54
- +
55
- +# Use ActiveModel has_secure_password
56
- +# gem 'bcrypt', '~> 3.1.7'
57
- +
58
- +# Use Unicorn as the app server
59
- +# gem 'unicorn'
60
- +
61
- +# Use Capistrano for deployment
62
- +# gem 'capistrano-rails', group: :development
63
- +
64
- +group :development, :test do
65
- + # Call 'debugger' anywhere in the code to stop execution and get a debugger console
66
- + gem 'debugger'
67
- +end
68
- +
69
- +group :development do
70
- + # Access an IRB console on exception pages or by using <%= console %> in views
71
- + gem 'web-console', '~> 2.0'
72
- +
73
- + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
74
- + gem 'spring'
75
- +end
76
- +
77
- diff --git a/provisioning/demo/Gemfile.lock b/provisioning/demo/Gemfile.lock
78
- new file mode 100644
79
- --- /dev/null
80
- +++ b/provisioning/demo/Gemfile.lock
81
- @@ -0,0 +1,160 @@
82
- +GEM
83
- + remote: https://rubygems.org/
84
- + specs:
85
- + actionmailer (4.2.4)
86
- + actionpack (= 4.2.4)
87
- + actionview (= 4.2.4)
88
- + activejob (= 4.2.4)
89
- + mail (~> 2.5, >= 2.5.4)
90
- + rails-dom-testing (~> 1.0, >= 1.0.5)
91
- + actionpack (4.2.4)
92
- + actionview (= 4.2.4)
93
- + activesupport (= 4.2.4)
94
- + rack (~> 1.6)
95
- + rack-test (~> 0.6.2)
96
- + rails-dom-testing (~> 1.0, >= 1.0.5)
97
- + rails-html-sanitizer (~> 1.0, >= 1.0.2)
98
- + actionview (4.2.4)
99
- + activesupport (= 4.2.4)
100
- + builder (~> 3.1)
101
- + erubis (~> 2.7.0)
102
- + rails-dom-testing (~> 1.0, >= 1.0.5)
103
- + rails-html-sanitizer (~> 1.0, >= 1.0.2)
104
- + activejob (4.2.4)
105
- + activesupport (= 4.2.4)
106
- + globalid (>= 0.3.0)
107
- + activemodel (4.2.4)
108
- + activesupport (= 4.2.4)
109
- + builder (~> 3.1)
110
- + activerecord (4.2.4)
111
- + activemodel (= 4.2.4)
112
- + activesupport (= 4.2.4)
113
- + arel (~> 6.0)
114
- + activesupport (4.2.4)
115
- + i18n (~> 0.7)
116
- + json (~> 1.7, >= 1.7.7)
117
- + minitest (~> 5.1)
118
- + thread_safe (~> 0.3, >= 0.3.4)
119
- + tzinfo (~> 1.1)
120
- + arel (6.0.3)
121
- + binding_of_caller (0.7.2)
122
- + debug_inspector (>= 0.0.1)
123
- + builder (3.2.2)
124
- + coffee-rails (4.1.0)
125
- + coffee-script (>= 2.2.0)
126
- + railties (>= 4.0.0, < 5.0)
127
- + coffee-script (2.4.1)
128
- + coffee-script-source
129
- + execjs
130
- + coffee-script-source (1.9.1.1)
131
- + columnize (0.9.0)
132
- + debug_inspector (0.0.2)
133
- + debugger (1.6.8)
134
- + columnize (>= 0.3.1)
135
- + debugger-linecache (~> 1.2.0)
136
- + debugger-ruby_core_source (~> 1.3.5)
137
- + debugger-linecache (1.2.0)
138
- + debugger-ruby_core_source (1.3.8)
139
- + erubis (2.7.0)
140
- + execjs (2.6.0)
141
- + globalid (0.3.6)
142
- + activesupport (>= 4.1.0)
143
- + i18n (0.7.0)
144
- + jbuilder (2.3.1)
145
- + activesupport (>= 3.0.0, < 5)
146
- + multi_json (~> 1.2)
147
- + jquery-rails (4.0.5)
148
- + rails-dom-testing (~> 1.0)
149
- + railties (>= 4.2.0)
150
- + thor (>= 0.14, < 2.0)
151
- + json (1.8.3)
152
- + loofah (2.0.3)
153
- + nokogiri (>= 1.5.9)
154
- + mail (2.6.3)
155
- + mime-types (>= 1.16, < 3)
156
- + mime-types (2.6.2)
157
- + mini_portile (0.6.2)
158
- + minitest (5.8.0)
159
- + multi_json (1.11.2)
160
- + nokogiri (1.6.6.2)
161
- + mini_portile (~> 0.6.0)
162
- + rack (1.6.4)
163
- + rack-test (0.6.3)
164
- + rack (>= 1.0)
165
- + rails (4.2.4)
166
- + actionmailer (= 4.2.4)
167
- + actionpack (= 4.2.4)
168
- + actionview (= 4.2.4)
169
- + activejob (= 4.2.4)
170
- + activemodel (= 4.2.4)
171
- + activerecord (= 4.2.4)
172
- + activesupport (= 4.2.4)
173
- + bundler (>= 1.3.0, < 2.0)
174
- + railties (= 4.2.4)
175
- + sprockets-rails
176
- + rails-deprecated_sanitizer (1.0.3)
177
- + activesupport (>= 4.2.0.alpha)
178
- + rails-dom-testing (1.0.7)
179
- + activesupport (>= 4.2.0.beta, < 5.0)
180
- + nokogiri (~> 1.6.0)
181
- + rails-deprecated_sanitizer (>= 1.0.1)
182
- + rails-html-sanitizer (1.0.2)
183
- + loofah (~> 2.0)
184
- + railties (4.2.4)
185
- + actionpack (= 4.2.4)
186
- + activesupport (= 4.2.4)
187
- + rake (>= 0.8.7)
188
- + thor (>= 0.18.1, < 2.0)
189
- + rake (10.4.2)
190
- + rdoc (4.2.0)
191
- + json (~> 1.4)
192
- + sass (3.4.18)
193
- + sass-rails (5.0.4)
194
- + railties (>= 4.0.0, < 5.0)
195
- + sass (~> 3.1)
196
- + sprockets (>= 2.8, < 4.0)
197
- + sprockets-rails (>= 2.0, < 4.0)
198
- + tilt (>= 1.1, < 3)
199
- + sdoc (0.4.1)
200
- + json (~> 1.7, >= 1.7.7)
201
- + rdoc (~> 4.0)
202
- + spring (1.4.0)
203
- + sprockets (3.3.4)
204
- + rack (~> 1.0)
205
- + sprockets-rails (2.3.3)
206
- + actionpack (>= 3.0)
207
- + activesupport (>= 3.0)
208
- + sprockets (>= 2.8, < 4.0)
209
- + sqlite3 (1.3.10)
210
- + thor (0.19.1)
211
- + thread_safe (0.3.5)
212
- + tilt (2.0.1)
213
- + turbolinks (2.5.3)
214
- + coffee-rails
215
- + tzinfo (1.2.2)
216
- + thread_safe (~> 0.1)
217
- + uglifier (2.7.2)
218
- + execjs (>= 0.3.0)
219
- + json (>= 1.8.0)
220
- + web-console (2.2.1)
221
- + activemodel (>= 4.0)
222
- + binding_of_caller (>= 0.7.2)
223
- + railties (>= 4.0)
224
- + sprockets-rails (>= 2.0, < 4.0)
225
- +
226
- +PLATFORMS
227
- + ruby
228
- +
229
- +DEPENDENCIES
230
- + coffee-rails (~> 4.1.0)
231
- + debugger
232
- + jbuilder (~> 2.0)
233
- + jquery-rails
234
- + rails (= 4.2.4)
235
- + sass-rails (~> 5.0)
236
- + sdoc (~> 0.4.0)
237
- + spring
238
- + sqlite3
239
- + turbolinks
240
- + uglifier (>= 1.3.0)
241
- + web-console (~> 2.0)
242
- diff --git a/provisioning/demo/README.rdoc b/provisioning/demo/README.rdoc
243
- new file mode 100644
244
- --- /dev/null
245
- +++ b/provisioning/demo/README.rdoc
246
- @@ -0,0 +1,28 @@
247
- +== README
248
- +
249
- +This README would normally document whatever steps are necessary to get the
250
- +application up and running.
251
- +
252
- +Things you may want to cover:
253
- +
254
- +* Ruby version
255
- +
256
- +* System dependencies
257
- +
258
- +* Configuration
259
- +
260
- +* Database creation
261
- +
262
- +* Database initialization
263
- +
264
- +* How to run the test suite
265
- +
266
- +* Services (job queues, cache servers, search engines, etc.)
267
- +
268
- +* Deployment instructions
269
- +
270
- +* ...
271
- +
272
- +
273
- +Please feel free to use a different markup language if you do not plan to run
274
- +<tt>rake doc:app</tt>.
275
- diff --git a/provisioning/demo/Rakefile b/provisioning/demo/Rakefile
276
- new file mode 100644
277
- --- /dev/null
278
- +++ b/provisioning/demo/Rakefile
279
- @@ -0,0 +1,6 @@
280
- +# Add your own tasks in files placed in lib/tasks ending in .rake,
281
- +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
282
- +
283
- +require File.expand_path('../config/application', __FILE__)
284
- +
285
- +Rails.application.load_tasks
286
- diff --git a/provisioning/demo/app/assets/images/.keep b/provisioning/demo/app/assets/images/.keep
287
- new file mode 100644
288
- diff --git a/provisioning/demo/app/assets/javascripts/application.js b/provisioning/demo/app/assets/javascripts/application.js
289
- new file mode 100644
290
- --- /dev/null
291
- +++ b/provisioning/demo/app/assets/javascripts/application.js
292
- @@ -0,0 +1,16 @@
293
- +// This is a manifest file that'll be compiled into application.js, which will include all the files
294
- +// listed below.
295
- +//
296
- +// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
297
- +// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
298
- +//
299
- +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
300
- +// compiled file.
301
- +//
302
- +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
303
- +// about supported directives.
304
- +//
305
- +//= require jquery
306
- +//= require jquery_ujs
307
- +//= require turbolinks
308
- +//= require_tree .
309
- diff --git a/provisioning/demo/app/assets/javascripts/welcome.coffee b/provisioning/demo/app/assets/javascripts/welcome.coffee
310
- new file mode 100644
311
- --- /dev/null
312
- +++ b/provisioning/demo/app/assets/javascripts/welcome.coffee
313
- @@ -0,0 +1,3 @@
314
- +# Place all the behaviors and hooks related to the matching controller here.
315
- +# All this logic will automatically be available in application.js.
316
- +# You can use CoffeeScript in this file: http://coffeescript.org/
317
- diff --git a/provisioning/demo/app/assets/stylesheets/application.css b/provisioning/demo/app/assets/stylesheets/application.css
318
- new file mode 100644
319
- --- /dev/null
320
- +++ b/provisioning/demo/app/assets/stylesheets/application.css
321
- @@ -0,0 +1,15 @@
322
- +/*
323
- + * This is a manifest file that'll be compiled into application.css, which will include all the files
324
- + * listed below.
325
- + *
326
- + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
327
- + * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
328
- + *
329
- + * You're free to add application-wide styles to this file and they'll appear at the bottom of the
330
- + * compiled file so the styles you add here take precedence over styles defined in any styles
331
- + * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
332
- + * file per style scope.
333
- + *
334
- + *= require_tree .
335
- + *= require_self
336
- + */
337
- diff --git a/provisioning/demo/app/assets/stylesheets/welcome.scss b/provisioning/demo/app/assets/stylesheets/welcome.scss
338
- new file mode 100644
339
- --- /dev/null
340
- +++ b/provisioning/demo/app/assets/stylesheets/welcome.scss
341
- @@ -0,0 +1,3 @@
342
- +// Place all the styles related to the welcome controller here.
343
- +// They will automatically be included in application.css.
344
- +// You can use Sass (SCSS) here: http://sass-lang.com/
345
- diff --git a/provisioning/demo/app/controllers/application_controller.rb b/provisioning/demo/app/controllers/application_controller.rb
346
- new file mode 100644
347
- --- /dev/null
348
- +++ b/provisioning/demo/app/controllers/application_controller.rb
349
- @@ -0,0 +1,5 @@
350
- +class ApplicationController < ActionController::Base
351
- + # Prevent CSRF attacks by raising an exception.
352
- + # For APIs, you may want to use :null_session instead.
353
- + protect_from_forgery with: :exception
354
- +end
355
- diff --git a/provisioning/demo/app/controllers/concerns/.keep b/provisioning/demo/app/controllers/concerns/.keep
356
- new file mode 100644
357
- diff --git a/provisioning/demo/app/controllers/welcome_controller.rb b/provisioning/demo/app/controllers/welcome_controller.rb
358
- new file mode 100644
359
- --- /dev/null
360
- +++ b/provisioning/demo/app/controllers/welcome_controller.rb
361
- @@ -0,0 +1,4 @@
362
- +class WelcomeController < ApplicationController
363
- + def index
364
- + end
365
- +end
366
- diff --git a/provisioning/demo/app/helpers/application_helper.rb b/provisioning/demo/app/helpers/application_helper.rb
367
- new file mode 100644
368
- --- /dev/null
369
- +++ b/provisioning/demo/app/helpers/application_helper.rb
370
- @@ -0,0 +1,2 @@
371
- +module ApplicationHelper
372
- +end
373
- diff --git a/provisioning/demo/app/helpers/welcome_helper.rb b/provisioning/demo/app/helpers/welcome_helper.rb
374
- new file mode 100644
375
- --- /dev/null
376
- +++ b/provisioning/demo/app/helpers/welcome_helper.rb
377
- @@ -0,0 +1,2 @@
378
- +module WelcomeHelper
379
- +end
380
- diff --git a/provisioning/demo/app/mailers/.keep b/provisioning/demo/app/mailers/.keep
381
- new file mode 100644
382
- diff --git a/provisioning/demo/app/models/.keep b/provisioning/demo/app/models/.keep
383
- new file mode 100644
384
- diff --git a/provisioning/demo/app/models/concerns/.keep b/provisioning/demo/app/models/concerns/.keep
385
- new file mode 100644
386
- diff --git a/provisioning/demo/app/views/layouts/application.html.erb b/provisioning/demo/app/views/layouts/application.html.erb
387
- new file mode 100644
388
- --- /dev/null
389
- +++ b/provisioning/demo/app/views/layouts/application.html.erb
390
- @@ -0,0 +1,14 @@
391
- +<!DOCTYPE html>
392
- +<html>
393
- +<head>
394
- + <title>Demo</title>
395
- + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
396
- + <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
397
- + <%= csrf_meta_tags %>
398
- +</head>
399
- +<body>
400
- +
401
- +<%= yield %>
402
- +
403
- +</body>
404
- +</html>
405
- diff --git a/provisioning/demo/app/views/welcome/index.html.erb b/provisioning/demo/app/views/welcome/index.html.erb
406
- new file mode 100644
407
- --- /dev/null
408
- +++ b/provisioning/demo/app/views/welcome/index.html.erb
409
- @@ -0,0 +1,2 @@
410
- +<h1>Welcome#index</h1>
411
- +<p>Find me in app/views/welcome/index.html.erb</p>
412
- diff --git a/provisioning/demo/bin/bundle b/provisioning/demo/bin/bundle
413
- new file mode 100755
414
- --- /dev/null
415
- +++ b/provisioning/demo/bin/bundle
416
- @@ -0,0 +1,3 @@
417
- +#!/usr/bin/env ruby
418
- +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
419
- +load Gem.bin_path('bundler', 'bundle')
420
- diff --git a/provisioning/demo/bin/rails b/provisioning/demo/bin/rails
421
- new file mode 100755
422
- --- /dev/null
423
- +++ b/provisioning/demo/bin/rails
424
- @@ -0,0 +1,8 @@
425
- +#!/usr/bin/env ruby
426
- +begin
427
- + load File.expand_path("../spring", __FILE__)
428
- +rescue LoadError
429
- +end
430
- +APP_PATH = File.expand_path('../../config/application', __FILE__)
431
- +require_relative '../config/boot'
432
- +require 'rails/commands'
433
- diff --git a/provisioning/demo/bin/rake b/provisioning/demo/bin/rake
434
- new file mode 100755
435
- --- /dev/null
436
- +++ b/provisioning/demo/bin/rake
437
- @@ -0,0 +1,8 @@
438
- +#!/usr/bin/env ruby
439
- +begin
440
- + load File.expand_path("../spring", __FILE__)
441
- +rescue LoadError
442
- +end
443
- +require_relative '../config/boot'
444
- +require 'rake'
445
- +Rake.application.run
446
- diff --git a/provisioning/demo/bin/setup b/provisioning/demo/bin/setup
447
- new file mode 100755
448
- --- /dev/null
449
- +++ b/provisioning/demo/bin/setup
450
- @@ -0,0 +1,29 @@
451
- +#!/usr/bin/env ruby
452
- +require 'pathname'
453
- +
454
- +# path to your application root.
455
- +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
456
- +
457
- +Dir.chdir APP_ROOT do
458
- + # This script is a starting point to setup your application.
459
- + # Add necessary setup steps to this file:
460
- +
461
- + puts "== Installing dependencies =="
462
- + system "gem install bundler --conservative"
463
- + system "bundle check || bundle install"
464
- +
465
- + # puts "\n== Copying sample files =="
466
- + # unless File.exist?("config/database.yml")
467
- + # system "cp config/database.yml.sample config/database.yml"
468
- + # end
469
- +
470
- + puts "\n== Preparing database =="
471
- + system "bin/rake db:setup"
472
- +
473
- + puts "\n== Removing old logs and tempfiles =="
474
- + system "rm -f log/*"
475
- + system "rm -rf tmp/cache"
476
- +
477
- + puts "\n== Restarting application server =="
478
- + system "touch tmp/restart.txt"
479
- +end
480
- diff --git a/provisioning/demo/bin/spring b/provisioning/demo/bin/spring
481
- new file mode 100755
482
- --- /dev/null
483
- +++ b/provisioning/demo/bin/spring
484
- @@ -0,0 +1,15 @@
485
- +#!/usr/bin/env ruby
486
- +
487
- +# This file loads spring without using Bundler, in order to be fast.
488
- +# It gets overwritten when you run the `spring binstub` command.
489
- +
490
- +unless defined?(Spring)
491
- + require "rubygems"
492
- + require "bundler"
493
- +
494
- + if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
495
- + Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
496
- + gem "spring", match[1]
497
- + require "spring/binstub"
498
- + end
499
- +end
500
- diff --git a/provisioning/demo/config.ru b/provisioning/demo/config.ru
501
- new file mode 100644
502
- --- /dev/null
503
- +++ b/provisioning/demo/config.ru
504
- @@ -0,0 +1,4 @@
505
- +# This file is used by Rack-based servers to start the application.
506
- +
507
- +require ::File.expand_path('../config/environment', __FILE__)
508
- +run Rails.application
509
- diff --git a/provisioning/demo/config/application.rb b/provisioning/demo/config/application.rb
510
- new file mode 100644
511
- --- /dev/null
512
- +++ b/provisioning/demo/config/application.rb
513
- @@ -0,0 +1,26 @@
514
- +require File.expand_path('../boot', __FILE__)
515
- +
516
- +require 'rails/all'
517
- +
518
- +# Require the gems listed in Gemfile, including any gems
519
- +# you've limited to :test, :development, or :production.
520
- +Bundler.require(*Rails.groups)
521
- +
522
- +module Demo
523
- + class Application < Rails::Application
524
- + # Settings in config/environments/* take precedence over those specified here.
525
- + # Application configuration should go into files in config/initializers
526
- + # -- all .rb files in that directory are automatically loaded.
527
- +
528
- + # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
529
- + # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
530
- + # config.time_zone = 'Central Time (US & Canada)'
531
- +
532
- + # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
533
- + # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
534
- + # config.i18n.default_locale = :de
535
- +
536
- + # Do not swallow errors in after_commit/after_rollback callbacks.
537
- + config.active_record.raise_in_transactional_callbacks = true
538
- + end
539
- +end
540
- diff --git a/provisioning/demo/config/boot.rb b/provisioning/demo/config/boot.rb
541
- new file mode 100644
542
- --- /dev/null
543
- +++ b/provisioning/demo/config/boot.rb
544
- @@ -0,0 +1,3 @@
545
- +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
546
- +
547
- +require 'bundler/setup' # Set up gems listed in the Gemfile.
548
- diff --git a/provisioning/demo/config/database.yml b/provisioning/demo/config/database.yml
549
- new file mode 100644
550
- --- /dev/null
551
- +++ b/provisioning/demo/config/database.yml
552
- @@ -0,0 +1,25 @@
553
- +# SQLite version 3.x
554
- +# gem install sqlite3
555
- +#
556
- +# Ensure the SQLite 3 gem is defined in your Gemfile
557
- +# gem 'sqlite3'
558
- +#
559
- +default: &default
560
- + adapter: sqlite3
561
- + pool: 5
562
- + timeout: 5000
563
- +
564
- +development:
565
- + <<: *default
566
- + database: db/development.sqlite3
567
- +
568
- +# Warning: The database defined as "test" will be erased and
569
- +# re-generated from your development database when you run "rake".
570
- +# Do not set this db to the same as development or production.
571
- +test:
572
- + <<: *default
573
- + database: db/test.sqlite3
574
- +
575
- +production:
576
- + <<: *default
577
- + database: db/production.sqlite3
578
- diff --git a/provisioning/demo/config/environment.rb b/provisioning/demo/config/environment.rb
579
- new file mode 100644
580
- --- /dev/null
581
- +++ b/provisioning/demo/config/environment.rb
582
- @@ -0,0 +1,5 @@
583
- +# Load the Rails application.
584
- +require File.expand_path('../application', __FILE__)
585
- +
586
- +# Initialize the Rails application.
587
- +Rails.application.initialize!
588
- diff --git a/provisioning/demo/config/environments/development.rb b/provisioning/demo/config/environments/development.rb
589
- new file mode 100644
590
- --- /dev/null
591
- +++ b/provisioning/demo/config/environments/development.rb
592
- @@ -0,0 +1,41 @@
593
- +Rails.application.configure do
594
- + # Settings specified here will take precedence over those in config/application.rb.
595
- +
596
- + # In the development environment your application's code is reloaded on
597
- + # every request. This slows down response time but is perfect for development
598
- + # since you don't have to restart the web server when you make code changes.
599
- + config.cache_classes = false
600
- +
601
- + # Do not eager load code on boot.
602
- + config.eager_load = false
603
- +
604
- + # Show full error reports and disable caching.
605
- + config.consider_all_requests_local = true
606
- + config.action_controller.perform_caching = false
607
- +
608
- + # Don't care if the mailer can't send.
609
- + config.action_mailer.raise_delivery_errors = false
610
- +
611
- + # Print deprecation notices to the Rails logger.
612
- + config.active_support.deprecation = :log
613
- +
614
- + # Raise an error on page load if there are pending migrations.
615
- + config.active_record.migration_error = :page_load
616
- +
617
- + # Debug mode disables concatenation and preprocessing of assets.
618
- + # This option may cause significant delays in view rendering with a large
619
- + # number of complex assets.
620
- + config.assets.debug = true
621
- +
622
- + # Asset digests allow you to set far-future HTTP expiration dates on all assets,
623
- + # yet still be able to expire them through the digest params.
624
- + config.assets.digest = true
625
- +
626
- + # Adds additional error checking when serving assets at runtime.
627
- + # Checks for improperly declared sprockets dependencies.
628
- + # Raises helpful error messages.
629
- + config.assets.raise_runtime_errors = true
630
- +
631
- + # Raises error for missing translations
632
- + # config.action_view.raise_on_missing_translations = true
633
- +end
634
- diff --git a/provisioning/demo/config/environments/production.rb b/provisioning/demo/config/environments/production.rb
635
- new file mode 100644
636
- --- /dev/null
637
- +++ b/provisioning/demo/config/environments/production.rb
638
- @@ -0,0 +1,79 @@
639
- +Rails.application.configure do
640
- + # Settings specified here will take precedence over those in config/application.rb.
641
- +
642
- + # Code is not reloaded between requests.
643
- + config.cache_classes = true
644
- +
645
- + # Eager load code on boot. This eager loads most of Rails and
646
- + # your application in memory, allowing both threaded web servers
647
- + # and those relying on copy on write to perform better.
648
- + # Rake tasks automatically ignore this option for performance.
649
- + config.eager_load = true
650
- +
651
- + # Full error reports are disabled and caching is turned on.
652
- + config.consider_all_requests_local = false
653
- + config.action_controller.perform_caching = true
654
- +
655
- + # Enable Rack::Cache to put a simple HTTP cache in front of your application
656
- + # Add `rack-cache` to your Gemfile before enabling this.
657
- + # For large-scale production use, consider using a caching reverse proxy like
658
- + # NGINX, varnish or squid.
659
- + # config.action_dispatch.rack_cache = true
660
- +
661
- + # Disable serving static files from the `/public` folder by default since
662
- + # Apache or NGINX already handles this.
663
- + config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
664
- +
665
- + # Compress JavaScripts and CSS.
666
- + config.assets.js_compressor = :uglifier
667
- + # config.assets.css_compressor = :sass
668
- +
669
- + # Do not fallback to assets pipeline if a precompiled asset is missed.
670
- + config.assets.compile = false
671
- +
672
- + # Asset digests allow you to set far-future HTTP expiration dates on all assets,
673
- + # yet still be able to expire them through the digest params.
674
- + config.assets.digest = true
675
- +
676
- + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
677
- +
678
- + # Specifies the header that your server uses for sending files.
679
- + # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
680
- + # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
681
- +
682
- + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
683
- + # config.force_ssl = true
684
- +
685
- + # Use the lowest log level to ensure availability of diagnostic information
686
- + # when problems arise.
687
- + config.log_level = :debug
688
- +
689
- + # Prepend all log lines with the following tags.
690
- + # config.log_tags = [ :subdomain, :uuid ]
691
- +
692
- + # Use a different logger for distributed setups.
693
- + # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
694
- +
695
- + # Use a different cache store in production.
696
- + # config.cache_store = :mem_cache_store
697
- +
698
- + # Enable serving of images, stylesheets, and JavaScripts from an asset server.
699
- + # config.action_controller.asset_host = 'http://assets.example.com'
700
- +
701
- + # Ignore bad email addresses and do not raise email delivery errors.
702
- + # Set this to true and configure the email server for immediate delivery to raise delivery errors.
703
- + # config.action_mailer.raise_delivery_errors = false
704
- +
705
- + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
706
- + # the I18n.default_locale when a translation cannot be found).
707
- + config.i18n.fallbacks = true
708
- +
709
- + # Send deprecation notices to registered listeners.
710
- + config.active_support.deprecation = :notify
711
- +
712
- + # Use default logging formatter so that PID and timestamp are not suppressed.
713
- + config.log_formatter = ::Logger::Formatter.new
714
- +
715
- + # Do not dump schema after migrations.
716
- + config.active_record.dump_schema_after_migration = false
717
- +end
718
- diff --git a/provisioning/demo/config/environments/test.rb b/provisioning/demo/config/environments/test.rb
719
- new file mode 100644
720
- --- /dev/null
721
- +++ b/provisioning/demo/config/environments/test.rb
722
- @@ -0,0 +1,42 @@
723
- +Rails.application.configure do
724
- + # Settings specified here will take precedence over those in config/application.rb.
725
- +
726
- + # The test environment is used exclusively to run your application's
727
- + # test suite. You never need to work with it otherwise. Remember that
728
- + # your test database is "scratch space" for the test suite and is wiped
729
- + # and recreated between test runs. Don't rely on the data there!
730
- + config.cache_classes = true
731
- +
732
- + # Do not eager load code on boot. This avoids loading your whole application
733
- + # just for the purpose of running a single test. If you are using a tool that
734
- + # preloads Rails for running tests, you may have to set it to true.
735
- + config.eager_load = false
736
- +
737
- + # Configure static file server for tests with Cache-Control for performance.
738
- + config.serve_static_files = true
739
- + config.static_cache_control = 'public, max-age=3600'
740
- +
741
- + # Show full error reports and disable caching.
742
- + config.consider_all_requests_local = true
743
- + config.action_controller.perform_caching = false
744
- +
745
- + # Raise exceptions instead of rendering exception templates.
746
- + config.action_dispatch.show_exceptions = false
747
- +
748
- + # Disable request forgery protection in test environment.
749
- + config.action_controller.allow_forgery_protection = false
750
- +
751
- + # Tell Action Mailer not to deliver emails to the real world.
752
- + # The :test delivery method accumulates sent emails in the
753
- + # ActionMailer::Base.deliveries array.
754
- + config.action_mailer.delivery_method = :test
755
- +
756
- + # Randomize the order test cases are executed.
757
- + config.active_support.test_order = :random
758
- +
759
- + # Print deprecation notices to the stderr.
760
- + config.active_support.deprecation = :stderr
761
- +
762
- + # Raises error for missing translations
763
- + # config.action_view.raise_on_missing_translations = true
764
- +end
765
- diff --git a/provisioning/demo/config/initializers/assets.rb b/provisioning/demo/config/initializers/assets.rb
766
- new file mode 100644
767
- --- /dev/null
768
- +++ b/provisioning/demo/config/initializers/assets.rb
769
- @@ -0,0 +1,11 @@
770
- +# Be sure to restart your server when you modify this file.
771
- +
772
- +# Version of your assets, change this if you want to expire all your assets.
773
- +Rails.application.config.assets.version = '1.0'
774
- +
775
- +# Add additional assets to the asset load path
776
- +# Rails.application.config.assets.paths << Emoji.images_path
777
- +
778
- +# Precompile additional assets.
779
- +# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
780
- +# Rails.application.config.assets.precompile += %w( search.js )
781
- diff --git a/provisioning/demo/config/initializers/backtrace_silencers.rb b/provisioning/demo/config/initializers/backtrace_silencers.rb
782
- new file mode 100644
783
- --- /dev/null
784
- +++ b/provisioning/demo/config/initializers/backtrace_silencers.rb
785
- @@ -0,0 +1,7 @@
786
- +# Be sure to restart your server when you modify this file.
787
- +
788
- +# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
789
- +# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
790
- +
791
- +# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
792
- +# Rails.backtrace_cleaner.remove_silencers!
793
- diff --git a/provisioning/demo/config/initializers/cookies_serializer.rb b/provisioning/demo/config/initializers/cookies_serializer.rb
794
- new file mode 100644
795
- --- /dev/null
796
- +++ b/provisioning/demo/config/initializers/cookies_serializer.rb
797
- @@ -0,0 +1,3 @@
798
- +# Be sure to restart your server when you modify this file.
799
- +
800
- +Rails.application.config.action_dispatch.cookies_serializer = :json
801
- diff --git a/provisioning/demo/config/initializers/filter_parameter_logging.rb b/provisioning/demo/config/initializers/filter_parameter_logging.rb
802
- new file mode 100644
803
- --- /dev/null
804
- +++ b/provisioning/demo/config/initializers/filter_parameter_logging.rb
805
- @@ -0,0 +1,4 @@
806
- +# Be sure to restart your server when you modify this file.
807
- +
808
- +# Configure sensitive parameters which will be filtered from the log file.
809
- +Rails.application.config.filter_parameters += [:password]
810
- diff --git a/provisioning/demo/config/initializers/inflections.rb b/provisioning/demo/config/initializers/inflections.rb
811
- new file mode 100644
812
- --- /dev/null
813
- +++ b/provisioning/demo/config/initializers/inflections.rb
814
- @@ -0,0 +1,16 @@
815
- +# Be sure to restart your server when you modify this file.
816
- +
817
- +# Add new inflection rules using the following format. Inflections
818
- +# are locale specific, and you may define rules for as many different
819
- +# locales as you wish. All of these examples are active by default:
820
- +# ActiveSupport::Inflector.inflections(:en) do |inflect|
821
- +# inflect.plural /^(ox)$/i, '\1en'
822
- +# inflect.singular /^(ox)en/i, '\1'
823
- +# inflect.irregular 'person', 'people'
824
- +# inflect.uncountable %w( fish sheep )
825
- +# end
826
- +
827
- +# These inflection rules are supported but not enabled by default:
828
- +# ActiveSupport::Inflector.inflections(:en) do |inflect|
829
- +# inflect.acronym 'RESTful'
830
- +# end
831
- diff --git a/provisioning/demo/config/initializers/mime_types.rb b/provisioning/demo/config/initializers/mime_types.rb
832
- new file mode 100644
833
- --- /dev/null
834
- +++ b/provisioning/demo/config/initializers/mime_types.rb
835
- @@ -0,0 +1,4 @@
836
- +# Be sure to restart your server when you modify this file.
837
- +
838
- +# Add new mime types for use in respond_to blocks:
839
- +# Mime::Type.register "text/richtext", :rtf
840
- diff --git a/provisioning/demo/config/initializers/session_store.rb b/provisioning/demo/config/initializers/session_store.rb
841
- new file mode 100644
842
- --- /dev/null
843
- +++ b/provisioning/demo/config/initializers/session_store.rb
844
- @@ -0,0 +1,3 @@
845
- +# Be sure to restart your server when you modify this file.
846
- +
847
- +Rails.application.config.session_store :cookie_store, key: '_demo_session'
848
- diff --git a/provisioning/demo/config/initializers/wrap_parameters.rb b/provisioning/demo/config/initializers/wrap_parameters.rb
849
- new file mode 100644
850
- --- /dev/null
851
- +++ b/provisioning/demo/config/initializers/wrap_parameters.rb
852
- @@ -0,0 +1,14 @@
853
- +# Be sure to restart your server when you modify this file.
854
- +
855
- +# This file contains settings for ActionController::ParamsWrapper which
856
- +# is enabled by default.
857
- +
858
- +# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
859
- +ActiveSupport.on_load(:action_controller) do
860
- + wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
861
- +end
862
- +
863
- +# To enable root element in JSON for ActiveRecord objects.
864
- +# ActiveSupport.on_load(:active_record) do
865
- +# self.include_root_in_json = true
866
- +# end
867
- diff --git a/provisioning/demo/config/locales/en.yml b/provisioning/demo/config/locales/en.yml
868
- new file mode 100644
869
- --- /dev/null
870
- +++ b/provisioning/demo/config/locales/en.yml
871
- @@ -0,0 +1,23 @@
872
- +# Files in the config/locales directory are used for internationalization
873
- +# and are automatically loaded by Rails. If you want to use locales other
874
- +# than English, add the necessary files in this directory.
875
- +#
876
- +# To use the locales, use `I18n.t`:
877
- +#
878
- +# I18n.t 'hello'
879
- +#
880
- +# In views, this is aliased to just `t`:
881
- +#
882
- +# <%= t('hello') %>
883
- +#
884
- +# To use a different locale, set it with `I18n.locale`:
885
- +#
886
- +# I18n.locale = :es
887
- +#
888
- +# This would use the information in config/locales/es.yml.
889
- +#
890
- +# To learn more, please read the Rails Internationalization guide
891
- +# available at http://guides.rubyonrails.org/i18n.html.
892
- +
893
- +en:
894
- + hello: "Hello world"
895
- diff --git a/provisioning/demo/config/routes.rb b/provisioning/demo/config/routes.rb
896
- new file mode 100644
897
- --- /dev/null
898
- +++ b/provisioning/demo/config/routes.rb
899
- @@ -0,0 +1,58 @@
900
- +Rails.application.routes.draw do
901
- + get 'welcome/index'
902
- +
903
- + # The priority is based upon order of creation: first created -> highest priority.
904
- + # See how all your routes lay out with "rake routes".
905
- +
906
- + # You can have the root of your site routed with "root"
907
- + # root 'welcome#index'
908
- +
909
- + # Example of regular route:
910
- + # get 'products/:id' => 'catalog#view'
911
- +
912
- + # Example of named route that can be invoked with purchase_url(id: product.id)
913
- + # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
914
- +
915
- + # Example resource route (maps HTTP verbs to controller actions automatically):
916
- + # resources :products
917
- +
918
- + # Example resource route with options:
919
- + # resources :products do
920
- + # member do
921
- + # get 'short'
922
- + # post 'toggle'
923
- + # end
924
- + #
925
- + # collection do
926
- + # get 'sold'
927
- + # end
928
- + # end
929
- +
930
- + # Example resource route with sub-resources:
931
- + # resources :products do
932
- + # resources :comments, :sales
933
- + # resource :seller
934
- + # end
935
- +
936
- + # Example resource route with more complex sub-resources:
937
- + # resources :products do
938
- + # resources :comments
939
- + # resources :sales do
940
- + # get 'recent', on: :collection
941
- + # end
942
- + # end
943
- +
944
- + # Example resource route with concerns:
945
- + # concern :toggleable do
946
- + # post 'toggle'
947
- + # end
948
- + # resources :posts, concerns: :toggleable
949
- + # resources :photos, concerns: :toggleable
950
- +
951
- + # Example resource route within a namespace:
952
- + # namespace :admin do
953
- + # # Directs /admin/products/* to Admin::ProductsController
954
- + # # (app/controllers/admin/products_controller.rb)
955
- + # resources :products
956
- + # end
957
- +end
958
- diff --git a/provisioning/demo/config/secrets.yml b/provisioning/demo/config/secrets.yml
959
- new file mode 100644
960
- --- /dev/null
961
- +++ b/provisioning/demo/config/secrets.yml
962
- @@ -0,0 +1,22 @@
963
- +# Be sure to restart your server when you modify this file.
964
- +
965
- +# Your secret key is used for verifying the integrity of signed cookies.
966
- +# If you change this key, all old signed cookies will become invalid!
967
- +
968
- +# Make sure the secret is at least 30 characters and all random,
969
- +# no regular words or you'll be exposed to dictionary attacks.
970
- +# You can use `rake secret` to generate a secure secret key.
971
- +
972
- +# Make sure the secrets in this file are kept private
973
- +# if you're sharing your code publicly.
974
- +
975
- +development:
976
- + secret_key_base: 8fe0d838c9a0fdb8f1c39ffd7a00093ad5a40e31cafe0ea22964b645fec5aaf2d3ca74125753cdca9db1a6c7bfebd87c3c3008dfceb0cb60516934c5159ff835
977
- +
978
- +test:
979
- + secret_key_base: 63a8667861dbd62c985543e08d2eda48e1e0b8b167fe72cd0a1280cc31c5fb9f4e824f7b69962e98090e8081f135e3fb985b18063addd4ae773500ef81dc72f5
980
- +
981
- +# Do not keep production secrets in the repository,
982
- +# instead read values from the environment.
983
- +production:
984
- + secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
985
- diff --git a/provisioning/demo/db/seeds.rb b/provisioning/demo/db/seeds.rb
986
- new file mode 100644
987
- --- /dev/null
988
- +++ b/provisioning/demo/db/seeds.rb
989
- @@ -0,0 +1,7 @@
990
- +# This file should contain all the record creation needed to seed the database with its default values.
991
- +# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
992
- +#
993
- +# Examples:
994
- +#
995
- +# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
996
- +# Mayor.create(name: 'Emanuel', city: cities.first)
997
- diff --git a/provisioning/demo/lib/assets/.keep b/provisioning/demo/lib/assets/.keep
998
- new file mode 100644
999
- diff --git a/provisioning/demo/lib/tasks/.keep b/provisioning/demo/lib/tasks/.keep
1000
- new file mode 100644
1001
- diff --git a/provisioning/demo/log/.keep b/provisioning/demo/log/.keep
1002
- new file mode 100644
1003
- diff --git a/provisioning/demo/log/development.log b/provisioning/demo/log/development.log
1004
- new file mode 100644
1005
- diff --git a/provisioning/demo/public/404.html b/provisioning/demo/public/404.html
1006
- new file mode 100644
1007
- --- /dev/null
1008
- +++ b/provisioning/demo/public/404.html
1009
- @@ -0,0 +1,67 @@
1010
- +<!DOCTYPE html>
1011
- +<html>
1012
- +<head>
1013
- + <title>The page you were looking for doesn't exist (404)</title>
1014
- + <meta name="viewport" content="width=device-width,initial-scale=1">
1015
- + <style>
1016
- + body {
1017
- + background-color: #EFEFEF;
1018
- + color: #2E2F30;
1019
- + text-align: center;
1020
- + font-family: arial, sans-serif;
1021
- + margin: 0;
1022
- + }
1023
- +
1024
- + div.dialog {
1025
- + width: 95%;
1026
- + max-width: 33em;
1027
- + margin: 4em auto 0;
1028
- + }
1029
- +
1030
- + div.dialog > div {
1031
- + border: 1px solid #CCC;
1032
- + border-right-color: #999;
1033
- + border-left-color: #999;
1034
- + border-bottom-color: #BBB;
1035
- + border-top: #B00100 solid 4px;
1036
- + border-top-left-radius: 9px;
1037
- + border-top-right-radius: 9px;
1038
- + background-color: white;
1039
- + padding: 7px 12% 0;
1040
- + box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
1041
- + }
1042
- +
1043
- + h1 {
1044
- + font-size: 100%;
1045
- + color: #730E15;
1046
- + line-height: 1.5em;
1047
- + }
1048
- +
1049
- + div.dialog > p {
1050
- + margin: 0 0 1em;
1051
- + padding: 1em;
1052
- + background-color: #F7F7F7;
1053
- + border: 1px solid #CCC;
1054
- + border-right-color: #999;
1055
- + border-left-color: #999;
1056
- + border-bottom-color: #999;
1057
- + border-bottom-left-radius: 4px;
1058
- + border-bottom-right-radius: 4px;
1059
- + border-top-color: #DADADA;
1060
- + color: #666;
1061
- + box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
1062
- + }
1063
- + </style>
1064
- +</head>
1065
- +
1066
- +<body>
1067
- + <!-- This file lives in public/404.html -->
1068
- + <div class="dialog">
1069
- + <div>
1070
- + <h1>The page you were looking for doesn't exist.</h1>
1071
- + <p>You may have mistyped the address or the page may have moved.</p>
1072
- + </div>
1073
- + <p>If you are the application owner check the logs for more information.</p>
1074
- + </div>
1075
- +</body>
1076
- +</html>
1077
- diff --git a/provisioning/demo/public/422.html b/provisioning/demo/public/422.html
1078
- new file mode 100644
1079
- --- /dev/null
1080
- +++ b/provisioning/demo/public/422.html
1081
- @@ -0,0 +1,67 @@
1082
- +<!DOCTYPE html>
1083
- +<html>
1084
- +<head>
1085
- + <title>The change you wanted was rejected (422)</title>
1086
- + <meta name="viewport" content="width=device-width,initial-scale=1">
1087
- + <style>
1088
- + body {
1089
- + background-color: #EFEFEF;
1090
- + color: #2E2F30;
1091
- + text-align: center;
1092
- + font-family: arial, sans-serif;
1093
- + margin: 0;
1094
- + }
1095
- +
1096
- + div.dialog {
1097
- + width: 95%;
1098
- + max-width: 33em;
1099
- + margin: 4em auto 0;
1100
- + }
1101
- +
1102
- + div.dialog > div {
1103
- + border: 1px solid #CCC;
1104
- + border-right-color: #999;
1105
- + border-left-color: #999;
1106
- + border-bottom-color: #BBB;
1107
- + border-top: #B00100 solid 4px;
1108
- + border-top-left-radius: 9px;
1109
- + border-top-right-radius: 9px;
1110
- + background-color: white;
1111
- + padding: 7px 12% 0;
1112
- + box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
1113
- + }
1114
- +
1115
- + h1 {
1116
- + font-size: 100%;
1117
- + color: #730E15;
1118
- + line-height: 1.5em;
1119
- + }
1120
- +
1121
- + div.dialog > p {
1122
- + margin: 0 0 1em;
1123
- + padding: 1em;
1124
- + background-color: #F7F7F7;
1125
- + border: 1px solid #CCC;
1126
- + border-right-color: #999;
1127
- + border-left-color: #999;
1128
- + border-bottom-color: #999;
1129
- + border-bottom-left-radius: 4px;
1130
- + border-bottom-right-radius: 4px;
1131
- + border-top-color: #DADADA;
1132
- + color: #666;
1133
- + box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
1134
- + }
1135
- + </style>
1136
- +</head>
1137
- +
1138
- +<body>
1139
- + <!-- This file lives in public/422.html -->
1140
- + <div class="dialog">
1141
- + <div>
1142
- + <h1>The change you wanted was rejected.</h1>
1143
- + <p>Maybe you tried to change something you didn't have access to.</p>
1144
- + </div>
1145
- + <p>If you are the application owner check the logs for more information.</p>
1146
- + </div>
1147
- +</body>
1148
- +</html>
1149
- diff --git a/provisioning/demo/public/500.html b/provisioning/demo/public/500.html
1150
- new file mode 100644
1151
- --- /dev/null
1152
- +++ b/provisioning/demo/public/500.html
1153
- @@ -0,0 +1,66 @@
1154
- +<!DOCTYPE html>
1155
- +<html>
1156
- +<head>
1157
- + <title>We're sorry, but something went wrong (500)</title>
1158
- + <meta name="viewport" content="width=device-width,initial-scale=1">
1159
- + <style>
1160
- + body {
1161
- + background-color: #EFEFEF;
1162
- + color: #2E2F30;
1163
- + text-align: center;
1164
- + font-family: arial, sans-serif;
1165
- + margin: 0;
1166
- + }
1167
- +
1168
- + div.dialog {
1169
- + width: 95%;
1170
- + max-width: 33em;
1171
- + margin: 4em auto 0;
1172
- + }
1173
- +
1174
- + div.dialog > div {
1175
- + border: 1px solid #CCC;
1176
- + border-right-color: #999;
1177
- + border-left-color: #999;
1178
- + border-bottom-color: #BBB;
1179
- + border-top: #B00100 solid 4px;
1180
- + border-top-left-radius: 9px;
1181
- + border-top-right-radius: 9px;
1182
- + background-color: white;
1183
- + padding: 7px 12% 0;
1184
- + box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
1185
- + }
1186
- +
1187
- + h1 {
1188
- + font-size: 100%;
1189
- + color: #730E15;
1190
- + line-height: 1.5em;
1191
- + }
1192
- +
1193
- + div.dialog > p {
1194
- + margin: 0 0 1em;
1195
- + padding: 1em;
1196
- + background-color: #F7F7F7;
1197
- + border: 1px solid #CCC;
1198
- + border-right-color: #999;
1199
- + border-left-color: #999;
1200
- + border-bottom-color: #999;
1201
- + border-bottom-left-radius: 4px;
1202
- + border-bottom-right-radius: 4px;
1203
- + border-top-color: #DADADA;
1204
- + color: #666;
1205
- + box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
1206
- + }
1207
- + </style>
1208
- +</head>
1209
- +
1210
- +<body>
1211
- + <!-- This file lives in public/500.html -->
1212
- + <div class="dialog">
1213
- + <div>
1214
- + <h1>We're sorry, but something went wrong.</h1>
1215
- + </div>
1216
- + <p>If you are the application owner check the logs for more information.</p>
1217
- + </div>
1218
- +</body>
1219
- +</html>
1220
- diff --git a/provisioning/demo/public/favicon.ico b/provisioning/demo/public/favicon.ico
1221
- new file mode 100644
1222
- diff --git a/provisioning/demo/public/robots.txt b/provisioning/demo/public/robots.txt
1223
- new file mode 100644
1224
- --- /dev/null
1225
- +++ b/provisioning/demo/public/robots.txt
1226
- @@ -0,0 +1,5 @@
1227
- +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
1228
- +#
1229
- +# To ban all spiders from the entire site uncomment the next two lines:
1230
- +# User-agent: *
1231
- +# Disallow: /
1232
- diff --git a/provisioning/demo/test/controllers/.keep b/provisioning/demo/test/controllers/.keep
1233
- new file mode 100644
1234
- diff --git a/provisioning/demo/test/controllers/welcome_controller_test.rb b/provisioning/demo/test/controllers/welcome_controller_test.rb
1235
- new file mode 100644
1236
- --- /dev/null
1237
- +++ b/provisioning/demo/test/controllers/welcome_controller_test.rb
1238
- @@ -0,0 +1,9 @@
1239
- +require 'test_helper'
1240
- +
1241
- +class WelcomeControllerTest < ActionController::TestCase
1242
- + test "should get index" do
1243
- + get :index
1244
- + assert_response :success
1245
- + end
1246
- +
1247
- +end
1248
- diff --git a/provisioning/demo/test/fixtures/.keep b/provisioning/demo/test/fixtures/.keep
1249
- new file mode 100644
1250
- diff --git a/provisioning/demo/test/helpers/.keep b/provisioning/demo/test/helpers/.keep
1251
- new file mode 100644
1252
- diff --git a/provisioning/demo/test/integration/.keep b/provisioning/demo/test/integration/.keep
1253
- new file mode 100644
1254
- diff --git a/provisioning/demo/test/mailers/.keep b/provisioning/demo/test/mailers/.keep
1255
- new file mode 100644
1256
- diff --git a/provisioning/demo/test/models/.keep b/provisioning/demo/test/models/.keep
1257
- new file mode 100644
1258
- diff --git a/provisioning/demo/test/test_helper.rb b/provisioning/demo/test/test_helper.rb
1259
- new file mode 100644
1260
- --- /dev/null
1261
- +++ b/provisioning/demo/test/test_helper.rb
1262
- @@ -0,0 +1,10 @@
1263
- +ENV['RAILS_ENV'] ||= 'test'
1264
- +require File.expand_path('../../config/environment', __FILE__)
1265
- +require 'rails/test_help'
1266
- +
1267
- +class ActiveSupport::TestCase
1268
- + # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
1269
- + fixtures :all
1270
- +
1271
- + # Add more helper methods to be used by all tests here...
1272
- +end
1273
- diff --git a/provisioning/demo/vendor/assets/javascripts/.keep b/provisioning/demo/vendor/assets/javascripts/.keep
1274
- new file mode 100644
1275
- diff --git a/provisioning/demo/vendor/assets/stylesheets/.keep b/provisioning/demo/vendor/assets/stylesheets/.keep
1276
- new file mode 100644