gritano 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. data/Gemfile +9 -17
  2. data/Gemfile.lock +78 -50
  3. data/Guardfile +9 -0
  4. data/README.rdoc +23 -24
  5. data/Rakefile +8 -12
  6. data/TODO +12 -8
  7. data/VERSION +1 -1
  8. data/bin/gritano +8 -1
  9. data/bin/gritano-remote +16 -2
  10. data/gritano.gemspec +52 -230
  11. data/lib/gritano.rb +12 -6
  12. data/lib/gritano/config.rb +11 -31
  13. data/lib/gritano/console/base.rb +6 -74
  14. data/lib/gritano/console/git.rb +29 -0
  15. data/lib/gritano/console/local.rb +131 -0
  16. data/lib/gritano/console/remote.rb +47 -93
  17. data/lib/gritano/core/key.rb +18 -0
  18. data/lib/gritano/core/user.rb +12 -0
  19. data/lib/gritano/helpers.rb +52 -0
  20. data/lib/gritano/renderer.rb +36 -0
  21. data/lib/gritano/thor.rb +27 -0
  22. data/spec/data/development.yml +2 -0
  23. data/spec/gritano/console/git_spec.rb +55 -0
  24. data/spec/gritano/console/local_spec.rb +148 -0
  25. data/spec/gritano/console/remote_spec.rb +56 -0
  26. data/spec/gritano/core/key_spec.rb +21 -0
  27. data/spec/gritano/core/user_spec.rb +43 -0
  28. data/spec/gritano/helpers_spec.rb +113 -0
  29. data/spec/gritano/thor_spec.rb +29 -0
  30. data/spec/spec_helper.rb +1 -16
  31. data/templates/local.gritano +4 -0
  32. data/templates/remote.gritano +5 -0
  33. metadata +61 -280
  34. data/.gritano/config.yml +0 -2
  35. data/.gritano/database.yml +0 -2
  36. data/.ssh/.gitignore +0 -4
  37. data/bin/gritano-pub-key +0 -15
  38. data/db/migrate/001_create_users.rb +0 -8
  39. data/db/migrate/002_create_repositories.rb +0 -9
  40. data/db/migrate/003_create_permissions.rb +0 -10
  41. data/db/migrate/004_create_keys.rb +0 -11
  42. data/db/migrate/005_add_admin_to_users.rb +0 -10
  43. data/db/migrate/006_add_email_to_users.rb +0 -10
  44. data/db/migrate/007_add_password_to_users.rb +0 -10
  45. data/db/migrate/008_remove_password_from_user.rb +0 -10
  46. data/db/migrate/009_remove_email_from_users.rb +0 -10
  47. data/features/data/config_true.yml +0 -2
  48. data/features/data/local_commands/repo_add_tmp_jeka_git.txt +0 -1
  49. data/features/data/local_commands/repo_add_tmp_p_lang_git.txt +0 -1
  50. data/features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio.txt +0 -1
  51. data/features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio_jessicaeto.txt +0 -1
  52. data/features/data/local_commands/repo_list.txt +0 -6
  53. data/features/data/local_commands/repo_read_add_tmp_gritano_git_arybonadio.txt +0 -1
  54. data/features/data/local_commands/repo_read_add_tmp_gritano_git_jessicaeto.txt +0 -1
  55. data/features/data/local_commands/repo_read_add_tmp_p_lang_git_jessicaeto.txt +0 -1
  56. data/features/data/local_commands/repo_read_rm_tmp_jeka_git_aribonadio.txt +0 -1
  57. data/features/data/local_commands/repo_read_rm_tmp_jeka_git_igorbonadio.txt +0 -1
  58. data/features/data/local_commands/repo_read_rm_tmp_p_lang_git_igorbonadio.txt +0 -1
  59. data/features/data/local_commands/repo_rm_tmp_jeka_git.txt +0 -1
  60. data/features/data/local_commands/repo_rm_tmp_p_lang_git.txt +0 -1
  61. data/features/data/local_commands/repo_user_list_tmp_jeka_git.txt +0 -6
  62. data/features/data/local_commands/repo_user_list_tmp_ruby_git.txt +0 -1
  63. data/features/data/local_commands/repo_write_add_tmp_gritano_git_arybonadio.txt +0 -1
  64. data/features/data/local_commands/repo_write_add_tmp_gritano_git_jessicaeto.txt +0 -1
  65. data/features/data/local_commands/repo_write_add_tmp_p_lang_git_jessicaeto.txt +0 -1
  66. data/features/data/local_commands/repo_write_rm_tmp_gritano_git_arybonadio.txt +0 -1
  67. data/features/data/local_commands/repo_write_rm_tmp_gritano_git_igorbonadio.txt +0 -1
  68. data/features/data/local_commands/repo_write_rm_tmp_p_lang_git_igorbonadio.txt +0 -1
  69. data/features/data/local_commands/user_add_igorbonadio.txt +0 -1
  70. data/features/data/local_commands/user_add_jose.txt +0 -1
  71. data/features/data/local_commands/user_admin_add_arybonadio.txt +0 -1
  72. data/features/data/local_commands/user_admin_add_igorbonadio.txt +0 -1
  73. data/features/data/local_commands/user_admin_rm_arybonadio.txt +0 -1
  74. data/features/data/local_commands/user_admin_rm_igorbonadio.txt +0 -1
  75. data/features/data/local_commands/user_key_add_igorbonadio_marvin.txt +0 -1
  76. data/features/data/local_commands/user_key_add_userrr_marvino.txt +0 -1
  77. data/features/data/local_commands/user_key_list_arybonadio.txt +0 -1
  78. data/features/data/local_commands/user_key_list_igorbonadio.txt +0 -5
  79. data/features/data/local_commands/user_key_rm_igorbonadio_eva.txt +0 -1
  80. data/features/data/local_commands/user_key_rm_igorbonadio_marvino.txt +0 -1
  81. data/features/data/local_commands/user_list.txt +0 -6
  82. data/features/data/local_commands/user_repo_list_arybonadio.txt +0 -1
  83. data/features/data/local_commands/user_repo_list_igorbonadio.txt +0 -6
  84. data/features/data/local_commands/user_rm_igorbonadio.txt +0 -1
  85. data/features/data/local_commands/user_rm_jose.txt +0 -1
  86. data/features/data/local_commands/version.txt +0 -1
  87. data/features/data/local_help.txt +0 -32
  88. data/features/data/remote_commands/admin_help_igorbonadio.txt +0 -32
  89. data/features/data/remote_commands/admin_help_jessicaeto.txt +0 -32
  90. data/features/data/remote_commands/admin_repo_add_tmp_jeka_git_igorbonadio.txt +0 -1
  91. data/features/data/remote_commands/admin_repo_add_tmp_jeka_git_jessicaeto.txt +0 -1
  92. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio.txt +0 -1
  93. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_igorbonadio.txt +0 -1
  94. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto.txt +0 -1
  95. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto_igorbonadio.txt +0 -1
  96. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto_jessicaeto.txt +0 -1
  97. data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_jessicaeto.txt +0 -1
  98. data/features/data/remote_commands/admin_repo_list_igorbonadio.txt +0 -6
  99. data/features/data/remote_commands/admin_repo_list_jessicaeto.txt +0 -1
  100. data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_arybonadio_igorbonadio.txt +0 -1
  101. data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_arybonadio_jessicaeto.txt +0 -1
  102. data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_jessicaeto_igorbonadio.txt +0 -1
  103. data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_jessicaeto_jessicaeto.txt +0 -1
  104. data/features/data/remote_commands/admin_repo_read_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt +0 -1
  105. data/features/data/remote_commands/admin_repo_read_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt +0 -1
  106. data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_aribonadio_igorbonadio.txt +0 -1
  107. data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_aribonadio_jessicaeto.txt +0 -1
  108. data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_igorbonadio_igorbonadio.txt +0 -1
  109. data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_igorbonadio_jessicaeto.txt +0 -1
  110. data/features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt +0 -1
  111. data/features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt +0 -1
  112. data/features/data/remote_commands/admin_repo_rm_tmp_jeka_git_igorbonadio.txt +0 -1
  113. data/features/data/remote_commands/admin_repo_rm_tmp_jeka_git_jessicaeto.txt +0 -1
  114. data/features/data/remote_commands/admin_repo_rm_tmp_p_lang_git_igorbonadio.txt +0 -1
  115. data/features/data/remote_commands/admin_repo_rm_tmp_p_lang_git_jessicaeto.txt +0 -1
  116. data/features/data/remote_commands/admin_repo_user_list_tmp_jeka_git_igorbonadio.txt +0 -6
  117. data/features/data/remote_commands/admin_repo_user_list_tmp_jeka_git_jessicaeto.txt +0 -1
  118. data/features/data/remote_commands/admin_repo_user_list_tmp_ruby_git_igorbonadio.txt +0 -1
  119. data/features/data/remote_commands/admin_repo_user_list_tmp_ruby_git_jessicaeto.txt +0 -1
  120. data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_igorbonadio.txt +0 -1
  121. data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_jessicaeto.txt +0 -1
  122. data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_igorbonadio.txt +0 -1
  123. data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_jessicaeto.txt +0 -1
  124. data/features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt +0 -1
  125. data/features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt +0 -1
  126. data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_igorbonadio.txt +0 -1
  127. data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_jessicaeto.txt +0 -1
  128. data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_igorbonadio.txt +0 -1
  129. data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_jessicaeto.txt +0 -1
  130. data/features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt +0 -1
  131. data/features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt +0 -1
  132. data/features/data/remote_commands/admin_user_add_igorbonadio_igorbonadio.txt +0 -1
  133. data/features/data/remote_commands/admin_user_add_igorbonadio_jessicaeto.txt +0 -1
  134. data/features/data/remote_commands/admin_user_add_jose_igorbonadio.txt +0 -1
  135. data/features/data/remote_commands/admin_user_add_jose_jessicaeto.txt +0 -1
  136. data/features/data/remote_commands/admin_user_admin_add_arybonadio_igorbonadio.txt +0 -1
  137. data/features/data/remote_commands/admin_user_admin_add_arybonadio_jessicaeto.txt +0 -1
  138. data/features/data/remote_commands/admin_user_admin_add_igorbonadio_igorbonadio.txt +0 -1
  139. data/features/data/remote_commands/admin_user_admin_add_igorbonadio_jessicaeto.txt +0 -1
  140. data/features/data/remote_commands/admin_user_admin_rm_arybonadio_igorbonadio.txt +0 -1
  141. data/features/data/remote_commands/admin_user_admin_rm_arybonadio_jessicaeto.txt +0 -1
  142. data/features/data/remote_commands/admin_user_admin_rm_igorbonadio_igorbonadio.txt +0 -1
  143. data/features/data/remote_commands/admin_user_admin_rm_igorbonadio_jessicaeto.txt +0 -1
  144. data/features/data/remote_commands/admin_user_key_add_igorbonadio_marvin_igorbonadio.txt +0 -1
  145. data/features/data/remote_commands/admin_user_key_add_igorbonadio_marvin_jessicaeto.txt +0 -1
  146. data/features/data/remote_commands/admin_user_key_add_userrr_marvino_igorbonadio.txt +0 -1
  147. data/features/data/remote_commands/admin_user_key_add_userrr_marvino_jessicaeto.txt +0 -1
  148. data/features/data/remote_commands/admin_user_key_list_arybonadio_igorbonadio.txt +0 -1
  149. data/features/data/remote_commands/admin_user_key_list_arybonadio_jessicaeto.txt +0 -1
  150. data/features/data/remote_commands/admin_user_key_list_igorbonadio_igorbonadio.txt +0 -5
  151. data/features/data/remote_commands/admin_user_key_list_igorbonadio_jessicaeto.txt +0 -1
  152. data/features/data/remote_commands/admin_user_key_rm_igorbonadio_eva_igorbonadio.txt +0 -1
  153. data/features/data/remote_commands/admin_user_key_rm_igorbonadio_eva_jessicaeto.txt +0 -1
  154. data/features/data/remote_commands/admin_user_key_rm_igorbonadio_marvino_igorbonadio.txt +0 -1
  155. data/features/data/remote_commands/admin_user_key_rm_igorbonadio_marvino_jessicaeto.txt +0 -1
  156. data/features/data/remote_commands/admin_user_list_igorbonadio.txt +0 -6
  157. data/features/data/remote_commands/admin_user_list_jessicaeto.txt +0 -1
  158. data/features/data/remote_commands/admin_user_repo_list_arybonadio_igorbonadio.txt +0 -1
  159. data/features/data/remote_commands/admin_user_repo_list_arybonadio_jessicaeto.txt +0 -1
  160. data/features/data/remote_commands/admin_user_repo_list_igorbonadio_igorbonadio.txt +0 -6
  161. data/features/data/remote_commands/admin_user_repo_list_igorbonadio_jessicaeto.txt +0 -1
  162. data/features/data/remote_commands/admin_user_rm_igorbonadio_igorbonadio.txt +0 -1
  163. data/features/data/remote_commands/admin_user_rm_igorbonadio_jessicaeto.txt +0 -1
  164. data/features/data/remote_commands/admin_user_rm_jose_igorbonadio.txt +0 -1
  165. data/features/data/remote_commands/admin_user_rm_jose_jessicaeto.txt +0 -1
  166. data/features/data/remote_commands/admin_version_igorbonadio.txt +0 -1
  167. data/features/data/remote_commands/admin_version_jessicaeto.txt +0 -1
  168. data/features/data/remote_commands/email_get_igorbonadio.txt +0 -1
  169. data/features/data/remote_commands/email_get_jessicaeto.txt +0 -1
  170. data/features/data/remote_commands/email_update_email@server_com_igorbonadio.txt +0 -1
  171. data/features/data/remote_commands/email_update_email@server_com_jessicaeto.txt +0 -1
  172. data/features/data/remote_commands/help_igorbonadio.txt +0 -14
  173. data/features/data/remote_commands/help_jessicaeto.txt +0 -14
  174. data/features/data/remote_commands/invalid_command_igorbonadio.txt +0 -14
  175. data/features/data/remote_commands/invalid_command_jessicaeto.txt +0 -14
  176. data/features/data/remote_commands/key_add_keyname_igorbonadio.txt +0 -1
  177. data/features/data/remote_commands/key_add_keyname_jessicaeto.txt +0 -1
  178. data/features/data/remote_commands/key_list_igorbonadio.txt +0 -5
  179. data/features/data/remote_commands/key_list_jessicaeto.txt +0 -5
  180. data/features/data/remote_commands/key_rm_hal_igorbonadio.txt +0 -1
  181. data/features/data/remote_commands/key_rm_hal_jessicaeto.txt +0 -1
  182. data/features/data/remote_commands/repo_list_igorbonadio.txt +0 -6
  183. data/features/data/remote_commands/repo_list_jessicaeto.txt +0 -5
  184. data/features/data/remote_commands/version_igorbonadio.txt +0 -1
  185. data/features/data/remote_commands/version_jessicaeto.txt +0 -1
  186. data/features/data/remote_help.txt +0 -14
  187. data/features/install.feature +0 -40
  188. data/features/local.feature +0 -80
  189. data/features/pub_key.feature +0 -25
  190. data/features/remote.feature +0 -150
  191. data/features/step_definitions/background_step.rb +0 -26
  192. data/features/step_definitions/install_step.rb +0 -30
  193. data/features/step_definitions/local_step.rb +0 -25
  194. data/features/step_definitions/pub_key_step.rb +0 -15
  195. data/features/step_definitions/remote_step.rb +0 -49
  196. data/features/support/database_cleaner.rb +0 -15
  197. data/features/support/env.rb +0 -30
  198. data/lib/gritano/cli.rb +0 -49
  199. data/lib/gritano/console.rb +0 -26
  200. data/lib/gritano/console/executor.rb +0 -298
  201. data/lib/gritano/console/gritano.rb +0 -35
  202. data/lib/gritano/console/installer.rb +0 -55
  203. data/lib/gritano/models.rb +0 -7
  204. data/lib/gritano/models/key.rb +0 -37
  205. data/lib/gritano/models/permission.rb +0 -39
  206. data/lib/gritano/models/repository.rb +0 -29
  207. data/lib/gritano/models/user.rb +0 -39
  208. data/spec/cli_spec.rb +0 -26
  209. data/spec/config_spec.rb +0 -64
  210. data/spec/console_base_spec.rb +0 -61
  211. data/spec/console_executor_spec.rb +0 -183
  212. data/spec/console_gritano_spec.rb +0 -121
  213. data/spec/console_installer_spec.rb +0 -28
  214. data/spec/console_remote_spec.rb +0 -70
  215. data/spec/console_spec.rb +0 -27
  216. data/spec/data/help_command_name.txt +0 -7
  217. data/spec/model_key_spec.rb +0 -44
  218. data/spec/model_permission_spec.rb +0 -72
  219. data/spec/model_repository_spec.rb +0 -56
  220. data/spec/model_user_spec.rb +0 -96
@@ -1 +0,0 @@
1
- error: An error occurred. Permissions was not modified.
@@ -1 +0,0 @@
1
- Repository tmp/jeka.git removed successfully.
@@ -1 +0,0 @@
1
- error: Repository tmp/p-lang.git could not be removed.
@@ -1,6 +0,0 @@
1
- +-------------+------------+
2
- | user | permission |
3
- +-------------+------------+
4
- | igorbonadio | r |
5
- | jessicaeto | rw |
6
- +-------------+------------+
@@ -1 +0,0 @@
1
- error: Repository tmp/ruby.git doesn't exist.
@@ -1 +0,0 @@
1
- error: An error occurred. Permissions was not modified.
@@ -1 +0,0 @@
1
- User jessicaeto has write access to tmp/gritano.git.
@@ -1 +0,0 @@
1
- error: An error occurred. Permissions was not modified.
@@ -1 +0,0 @@
1
- error: An error occurred. Permissions was not modified.
@@ -1 +0,0 @@
1
- User igorbonadio has not write access to tmp/gritano.git.
@@ -1 +0,0 @@
1
- error: An error occurred. Permissions was not modified.
@@ -1 +0,0 @@
1
- error: Login has already been taken.
@@ -1 +0,0 @@
1
- error: User arybonadio could not be modified
@@ -1 +0,0 @@
1
- Now, user igorbonadio is an administrator
@@ -1 +0,0 @@
1
- error: User arybonadio could not be modified
@@ -1 +0,0 @@
1
- Now, user igorbonadio is not an administrator
@@ -1 +0,0 @@
1
- error: User arybonadio is not registered
@@ -1,5 +0,0 @@
1
- +------+
2
- | keys |
3
- +------+
4
- | eva |
5
- +------+
@@ -1,6 +0,0 @@
1
- +-------------+-------+
2
- | user | admin |
3
- +-------------+-------+
4
- | igorbonadio | true |
5
- | jessicaeto | false |
6
- +-------------+-------+
@@ -1 +0,0 @@
1
- error: access denied
@@ -1 +0,0 @@
1
- error: User arybonadio is not registered
@@ -1,6 +0,0 @@
1
- +-----------------+
2
- | repositories |
3
- +-----------------+
4
- | tmp/gritano.git |
5
- | tmp/jeka.git |
6
- +-----------------+
@@ -1 +0,0 @@
1
- error: User jose could not be removed.
@@ -1 +0,0 @@
1
- error: access denied
@@ -1 +0,0 @@
1
- error: User does not have email.
@@ -1,14 +0,0 @@
1
- ssh undefined@undefined [command]
2
-
3
- Examples:
4
- ssh undefined@undefined version
5
- ssh undefined@undefined help
6
- ssh undefined@undefined username
7
- ssh undefined@undefined repo:list
8
- ssh undefined@undefined key:list
9
- ssh undefined@undefined key:add keyname < key.pub
10
- ssh undefined@undefined key:rm keyname
11
- ssh undefined@undefined admin:help
12
-
13
- --
14
- v{{VERSION}}
@@ -1,14 +0,0 @@
1
- ssh undefined@undefined [command]
2
-
3
- Examples:
4
- ssh undefined@undefined version
5
- ssh undefined@undefined help
6
- ssh undefined@undefined username
7
- ssh undefined@undefined repo:list
8
- ssh undefined@undefined key:list
9
- ssh undefined@undefined key:add keyname < key.pub
10
- ssh undefined@undefined key:rm keyname
11
- ssh undefined@undefined admin:help
12
-
13
- --
14
- v{{VERSION}}
@@ -1,14 +0,0 @@
1
- ssh undefined@undefined [command]
2
-
3
- Examples:
4
- ssh undefined@undefined version
5
- ssh undefined@undefined help
6
- ssh undefined@undefined username
7
- ssh undefined@undefined repo:list
8
- ssh undefined@undefined key:list
9
- ssh undefined@undefined key:add keyname < key.pub
10
- ssh undefined@undefined key:rm keyname
11
- ssh undefined@undefined admin:help
12
-
13
- --
14
- v{{VERSION}}
@@ -1,14 +0,0 @@
1
- ssh undefined@undefined [command]
2
-
3
- Examples:
4
- ssh undefined@undefined version
5
- ssh undefined@undefined help
6
- ssh undefined@undefined username
7
- ssh undefined@undefined repo:list
8
- ssh undefined@undefined key:list
9
- ssh undefined@undefined key:add keyname < key.pub
10
- ssh undefined@undefined key:rm keyname
11
- ssh undefined@undefined admin:help
12
-
13
- --
14
- v{{VERSION}}
@@ -1 +0,0 @@
1
- Key added successfully.
@@ -1 +0,0 @@
1
- Key added successfully.
@@ -1,5 +0,0 @@
1
- +------+
2
- | keys |
3
- +------+
4
- | eva |
5
- +------+
@@ -1,5 +0,0 @@
1
- +------+
2
- | keys |
3
- +------+
4
- | hal |
5
- +------+
@@ -1 +0,0 @@
1
- error: Key could not be removed.
@@ -1 +0,0 @@
1
- Key removed successfully.
@@ -1,6 +0,0 @@
1
- +-----------------+
2
- | repositories |
3
- +-----------------+
4
- | tmp/gritano.git |
5
- | tmp/jeka.git |
6
- +-----------------+
@@ -1,5 +0,0 @@
1
- +--------------+
2
- | repositories |
3
- +--------------+
4
- | tmp/jeka.git |
5
- +--------------+
@@ -1,14 +0,0 @@
1
- gritano [command]
2
-
3
- Examples:
4
- gritano version
5
- gritano help
6
- gritano username
7
- gritano repo:list
8
- gritano key:list
9
- gritano key:add keyname < key.pub
10
- gritano key:rm keyname
11
- gritano admin:help
12
-
13
- --
14
- v{{VERSION}}
@@ -1,40 +0,0 @@
1
- Feature: Setup
2
- In order to set up a git server
3
- As a git user
4
- I want to install gritano
5
-
6
- Scenario: Gritano is not installed
7
- Given I start the gritano console but gritano is not installed
8
- When I execute any command
9
- Then I should see the error: "Error: First run 'gritano setup:prepare && gritano setup:install'"
10
-
11
- Scenario: Git is not installed
12
- Given I start the gritano console but gritano is not installed
13
- When I execute "help"
14
- Then I should see the local help
15
-
16
- Scenario: Gritano is not installed
17
- Given I start the gritano console but gritano is not installed
18
- When I execute "help"
19
- Then I should see the local help
20
-
21
- Scenario: Git is not installed
22
- Given I start the gritano console but gritano is not installed
23
- When I execute "version"
24
- Then I should see a message
25
-
26
- Scenario: Gritano is not installed
27
- Given I start the gritano console but gritano is not installed
28
- When I execute "version"
29
- Then I should see a message
30
-
31
- Scenario: Install
32
- Given I start the gritano console but gritano is not installed
33
- When I install it
34
- Then I should see that gritano was successful installed
35
-
36
- Scenario: Update
37
- Given I start the gritano console
38
- When I update it
39
- Then I should see that gritano was successful updated
40
-
@@ -1,80 +0,0 @@
1
- Feature: Local access
2
- In order to use gritano locally
3
- As a git user
4
- I want to execute some commands
5
-
6
- Background:
7
- Given the following users exist:
8
- | login | admin |
9
- | igorbonadio | true |
10
- | jessicaeto | false |
11
-
12
- And the following keys exist:
13
- | login | key |
14
- | igorbonadio | eva |
15
- | jessicaeto | hal |
16
-
17
- And the following repositories exist:
18
- | name |
19
- | tmp/gritano.git |
20
- | tmp/jeka.git |
21
-
22
- And the following permissions exist:
23
- | user | repo | access |
24
- | igorbonadio | tmp/gritano.git | read |
25
- | igorbonadio | tmp/gritano.git | write |
26
- | igorbonadio | tmp/jeka.git | read |
27
- | jessicaeto | tmp/jeka.git | read |
28
- | jessicaeto | tmp/jeka.git | write |
29
-
30
- Scenario: Get help
31
- Given I start the gritano console
32
- When I execute "help"
33
- Then I should see the local help
34
-
35
- Scenario Outline: Execute command
36
- Given I start the gritano console
37
- When I execute "<command>"
38
- Then I should see a message
39
- Examples:
40
- | command |
41
- | version |
42
- | user:add jose |
43
- | user:key:add igorbonadio marvin |
44
- | user:key:rm igorbonadio eva |
45
- | user:rm igorbonadio |
46
- | user:list |
47
- | user:key:list igorbonadio |
48
- | user:repo:list igorbonadio |
49
- | user:admin:add igorbonadio |
50
- | user:admin:rm igorbonadio |
51
- | repo:add tmp/p-lang.git |
52
- | repo:add tmp/p-lang.git igorbonadio |
53
- | repo:add tmp/p-lang.git igorbonadio jessicaeto |
54
- | repo:rm tmp/jeka.git |
55
- | repo:read:add tmp/gritano.git jessicaeto |
56
- | repo:write:add tmp/gritano.git jessicaeto |
57
- | repo:read:rm tmp/jeka.git igorbonadio |
58
- | repo:write:rm tmp/gritano.git igorbonadio |
59
- | repo:list |
60
- | repo:user:list tmp/jeka.git |
61
- | user:add igorbonadio |
62
- | user:rm jose |
63
- | user:key:add userrr marvino |
64
- | user:key:rm igorbonadio marvino |
65
- | user:key:list arybonadio |
66
- | user:repo:list arybonadio |
67
- | user:admin:add arybonadio |
68
- | user:admin:rm arybonadio |
69
- | repo:add tmp/jeka.git |
70
- | repo:rm tmp/p-lang.git |
71
- | repo:read:add tmp/gritano.git arybonadio |
72
- | repo:read:add tmp/p-lang.git jessicaeto |
73
- | repo:write:add tmp/gritano.git arybonadio |
74
- | repo:write:add tmp/p-lang.git jessicaeto |
75
- | repo:read:rm tmp/jeka.git aribonadio |
76
- | repo:read:rm tmp/p-lang.git igorbonadio |
77
- | repo:write:rm tmp/gritano.git arybonadio |
78
- | repo:write:rm tmp/p-lang.git igorbonadio |
79
- | repo:user:list tmp/ruby.git |
80
-