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
data/Gemfile CHANGED
@@ -1,22 +1,14 @@
1
1
  source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
2
 
6
- gem 'activerecord', ">= 3.2.8"
7
- gem 'sqlite3', ">= 1.3.6"
8
- gem 'grit', ">= 2.5.0"
9
- gem 'terminal-table', ">= 1.4.5"
10
- gem 'bcrypt-ruby'
3
+ gem "thor", "~> 0.18.1"
4
+ gem "terminal-table", "~> 1.4.5"
5
+ gem "gritano-core", "~> 2.0.0"
6
+ gem "sqlite3", "~> 1.3.7"
11
7
 
12
- # Add dependencies to develop your gem here.
13
- # Include everything needed to run rake, tests, features, etc.
14
8
  group :development do
15
- gem "rspec", ">= 2.11.0"
16
- gem "rdoc", ">= 3.12"
17
- gem "cucumber", ">= 1.2.1"
18
- gem "bundler", ">= 1.0"
19
- gem "jeweler", ">= 1.8.4"
20
- gem "simplecov", ">= 0.6.4"
21
- gem 'database_cleaner', ">= 0.8.0"
9
+ gem "rspec", "~> 2.13.0"
10
+ gem "rdoc", "~> 4.0.0"
11
+ gem "jeweler", "~> 1.8.4"
12
+ gem "simplecov", "~> 0.7.0"
13
+ gem 'guard-rspec'
22
14
  end
@@ -1,76 +1,104 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (3.2.11)
5
- activesupport (= 3.2.11)
6
- builder (~> 3.0.0)
7
- activerecord (3.2.11)
8
- activemodel (= 3.2.11)
9
- activesupport (= 3.2.11)
10
- arel (~> 3.0.2)
11
- tzinfo (~> 0.3.29)
12
- activesupport (3.2.11)
13
- i18n (~> 0.6)
14
- multi_json (~> 1.0)
15
- arel (3.0.2)
16
- bcrypt-ruby (3.0.1)
17
- builder (3.0.4)
18
- cucumber (1.2.1)
19
- builder (>= 2.1.2)
20
- diff-lcs (>= 1.1.3)
21
- gherkin (~> 2.11.0)
22
- json (>= 1.4.6)
23
- database_cleaner (0.9.1)
24
- diff-lcs (1.1.3)
25
- gherkin (2.11.5)
26
- json (>= 1.4.6)
4
+ activemodel (4.0.0.rc2)
5
+ activesupport (= 4.0.0.rc2)
6
+ builder (~> 3.1.0)
7
+ activerecord (4.0.0.rc2)
8
+ activemodel (= 4.0.0.rc2)
9
+ activerecord-deprecated_finders (~> 1.0.2)
10
+ activesupport (= 4.0.0.rc2)
11
+ arel (~> 4.0.0)
12
+ activerecord-deprecated_finders (1.0.3)
13
+ activesupport (4.0.0.rc2)
14
+ i18n (~> 0.6, >= 0.6.4)
15
+ minitest (~> 4.2)
16
+ multi_json (~> 1.3)
17
+ thread_safe (~> 0.1)
18
+ tzinfo (~> 0.3.37)
19
+ arel (4.0.0)
20
+ atomic (1.1.9)
21
+ builder (3.1.4)
22
+ coderay (1.0.9)
23
+ diff-lcs (1.2.4)
24
+ ffi (1.9.0)
25
+ formatador (0.2.4)
27
26
  git (1.2.5)
28
27
  grit (2.5.0)
29
28
  diff-lcs (~> 1.1)
30
29
  mime-types (~> 1.15)
31
30
  posix-spawn (~> 0.3.6)
32
- i18n (0.6.1)
31
+ gritano-core (2.0.0)
32
+ activerecord (~> 4.0.0.rc1)
33
+ grit (~> 2.5.0)
34
+ guard (1.8.0)
35
+ formatador (>= 0.2.4)
36
+ listen (>= 1.0.0)
37
+ lumberjack (>= 1.0.2)
38
+ pry (>= 0.9.10)
39
+ thor (>= 0.14.6)
40
+ guard-rspec (3.0.2)
41
+ guard (>= 1.8)
42
+ rspec (~> 2.13)
43
+ i18n (0.6.4)
33
44
  jeweler (1.8.4)
34
45
  bundler (~> 1.0)
35
46
  git (>= 1.2.5)
36
47
  rake
37
48
  rdoc
38
- json (1.7.6)
39
- mime-types (1.19)
40
- multi_json (1.5.0)
49
+ json (1.8.0)
50
+ listen (1.2.1)
51
+ rb-fsevent (>= 0.9.3)
52
+ rb-inotify (>= 0.9)
53
+ rb-kqueue (>= 0.2)
54
+ lumberjack (1.0.3)
55
+ method_source (0.8.1)
56
+ mime-types (1.23)
57
+ minitest (4.7.4)
58
+ multi_json (1.7.6)
41
59
  posix-spawn (0.3.6)
42
- rake (10.0.3)
43
- rdoc (3.12)
60
+ pry (0.9.12.2)
61
+ coderay (~> 1.0.5)
62
+ method_source (~> 0.8)
63
+ slop (~> 3.4)
64
+ rake (10.0.4)
65
+ rb-fsevent (0.9.3)
66
+ rb-inotify (0.9.0)
67
+ ffi (>= 0.5.0)
68
+ rb-kqueue (0.2.0)
69
+ ffi (>= 0.5.0)
70
+ rdoc (4.0.1)
44
71
  json (~> 1.4)
45
- rspec (2.12.0)
46
- rspec-core (~> 2.12.0)
47
- rspec-expectations (~> 2.12.0)
48
- rspec-mocks (~> 2.12.0)
49
- rspec-core (2.12.2)
50
- rspec-expectations (2.12.1)
51
- diff-lcs (~> 1.1.3)
52
- rspec-mocks (2.12.2)
72
+ rspec (2.13.0)
73
+ rspec-core (~> 2.13.0)
74
+ rspec-expectations (~> 2.13.0)
75
+ rspec-mocks (~> 2.13.0)
76
+ rspec-core (2.13.1)
77
+ rspec-expectations (2.13.0)
78
+ diff-lcs (>= 1.1.3, < 2.0)
79
+ rspec-mocks (2.13.1)
53
80
  simplecov (0.7.1)
54
81
  multi_json (~> 1.0)
55
82
  simplecov-html (~> 0.7.1)
56
83
  simplecov-html (0.7.1)
84
+ slop (3.4.5)
57
85
  sqlite3 (1.3.7)
58
86
  terminal-table (1.4.5)
59
- tzinfo (0.3.35)
87
+ thor (0.18.1)
88
+ thread_safe (0.1.0)
89
+ atomic
90
+ tzinfo (0.3.37)
60
91
 
61
92
  PLATFORMS
62
93
  ruby
63
94
 
64
95
  DEPENDENCIES
65
- activerecord (>= 3.2.8)
66
- bcrypt-ruby
67
- bundler (>= 1.0)
68
- cucumber (>= 1.2.1)
69
- database_cleaner (>= 0.8.0)
70
- grit (>= 2.5.0)
71
- jeweler (>= 1.8.4)
72
- rdoc (>= 3.12)
73
- rspec (>= 2.11.0)
74
- simplecov (>= 0.6.4)
75
- sqlite3 (>= 1.3.6)
76
- terminal-table (>= 1.4.5)
96
+ gritano-core (~> 2.0.0)
97
+ guard-rspec
98
+ jeweler (~> 1.8.4)
99
+ rdoc (~> 4.0.0)
100
+ rspec (~> 2.13.0)
101
+ simplecov (~> 0.7.0)
102
+ sqlite3 (~> 1.3.7)
103
+ terminal-table (~> 1.4.5)
104
+ thor (~> 0.18.1)
@@ -0,0 +1,9 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard :rspec do
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
7
+ watch('spec/spec_helper.rb') { "spec" }
8
+ end
9
+
@@ -15,19 +15,17 @@ Gritano is the simplest way to configure a git server over ssh. You can create r
15
15
 
16
16
  == Update
17
17
 
18
- If you are using a previous version, you should update your instalation:
19
-
20
- $ gem install gritano
21
-
22
- $ gritano setup:install
23
-
18
+ === 0.x.x or 1.0.0 to 2.x.x
19
+
20
+ Unfortunately, Gritano 2.x.x is not compatible with any version previous to 2.0.0.
21
+
24
22
  == Usage
25
23
 
26
24
  First of all you should create a git user who will be responsible for store and manipulate repositories. Lets suppose we are logged as this user.
27
25
 
28
26
  All you need to do to set up Gritano is
29
27
 
30
- $ gritano setup:prepare && gritano setup:install
28
+ $ gritano init && gritano db:migrate
31
29
 
32
30
  After that you can add users:
33
31
 
@@ -35,7 +33,7 @@ After that you can add users:
35
33
 
36
34
  add administrator rights to this user:
37
35
 
38
- $ gritano user:admin:add igorbonadio
36
+ $ gritano user:update igorbonadio --admin=true
39
37
 
40
38
  add user's public keys:
41
39
 
@@ -65,30 +63,30 @@ Gritano 0.2.0 introduced a new feature that enables users to execute some simple
65
63
 
66
64
  $ ssh git@host.com key:add mykey < id_rsa.pub
67
65
 
68
- $ ssh git@host.com key:add mykey
66
+ $ ssh git@host.com key:rm mykey
69
67
 
70
68
  For more information, execute
71
69
 
72
70
  $ ssh git@host.com help
73
-
71
+
74
72
  == Admin Access
75
73
 
76
74
  Starting from Gritano 0.3.0, administrators can execute commands via ssh:
77
75
 
78
- $ ssh git@host.com admin:user:add username
79
-
80
- $ ssh git@host.com admin:user:rm username
81
-
82
- $ ssh git@host.com admin:user:key:add username keyname < key.pub
83
-
84
- $ ssh git@host.com admin:user:key:rm username keyname
85
-
86
- $ ssh git@host.com admin:repo:add reponame.git
87
-
88
- $ ssh git@host.com admin:repo:rm reponame.git
89
-
90
- $ ssh git@host.com admin:repo:list
91
-
76
+ $ ssh git@host.com admin user:add username
77
+
78
+ $ ssh git@host.com admin user:rm username
79
+
80
+ $ ssh git@host.com admin user:key:add username keyname < key.pub
81
+
82
+ $ ssh git@host.com admin user:key:rm username keyname
83
+
84
+ $ ssh git@host.com admin repo:add reponame.git
85
+
86
+ $ ssh git@host.com admin repo:rm reponame.git
87
+
88
+ $ ssh git@host.com admin repo:list
89
+
92
90
  == For more Information
93
91
 
94
92
  http://gritano.org
@@ -107,3 +105,4 @@ http://gritano.org
107
105
 
108
106
  Copyright (c) 2012-2013 Ígor Bonadio. See LICENSE.txt for
109
107
  further details.
108
+
data/Rakefile CHANGED
@@ -15,10 +15,10 @@ require 'jeweler'
15
15
  Jeweler::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "gritano"
18
- gem.homepage = "http://gritano.org"
18
+ gem.homepage = "http://github.com/igorbonadio/gritano"
19
19
  gem.license = "MIT"
20
- gem.summary = %Q{Gritano is a tool to configure your git server over ssh}
21
- gem.description = %Q{Gritano is the simplest way to configure your git server over ssh. You can create repositories and manage user access.}
20
+ gem.summary = %Q{Gritano is a tool to configure git servers over ssh}
21
+ gem.description = %Q{Gritano is a tool to configure git servers over ssh}
22
22
  gem.email = "igorbonadio@gmail.com"
23
23
  gem.authors = ["Igor Bonadio"]
24
24
  # dependencies defined in Gemfile
@@ -36,10 +36,7 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
36
36
  spec.rcov = true
37
37
  end
38
38
 
39
- require 'cucumber/rake/task'
40
- Cucumber::Rake::Task.new(:features)
41
-
42
- task :default => [:spec, :features]
39
+ task :default => :spec
43
40
 
44
41
  require 'rdoc/task'
45
42
  Rake::RDocTask.new do |rdoc|
@@ -51,12 +48,11 @@ Rake::RDocTask.new do |rdoc|
51
48
  rdoc.rdoc_files.include('lib/**/*.rb')
52
49
  end
53
50
 
54
- require 'active_record'
55
- require 'yaml'
51
+ require 'gritano-core'
56
52
  namespace :db do
57
- desc "Migrate the database through scripts in db/migrate. Target specific version with VERSION=x"
53
+ desc "Migrate the database. Target specific version with VERSION=x"
58
54
  task :migrate do
59
- ActiveRecord::Base.establish_connection(YAML::load(File.open('.gritano/database.yml')))
60
- ActiveRecord::Migrator.migrate('db/migrate', ENV["VERSION"] ? ENV["VERSION"].to_i : nil )
55
+ FileUtils.mkdir 'tmp' unless File.exist? 'tmp'
56
+ Gritano::Core::Migration.migrate(YAML::load(File.open('spec/data/development.yml')))
61
57
  end
62
58
  end
data/TODO CHANGED
@@ -1,9 +1,13 @@
1
- v1.0.0:
2
- mais specs
3
- escrever um manual
4
- site @done (13-05-18 19:33)
5
- google analytics @done (13-05-22 22:37)
1
+ v2.0.0:
2
+ ler configs e executar @done (13-06-14 10:33)
3
+ migrar databases @done (13-06-14 10:57)
4
+ instalacao @done (13-06-14 10:33)
5
+ mudar nome dos binários no help @done (13-06-14 10:33)
6
+ ✔ ao criar authorized_keys, verificar se existe .ssh @done (13-06-14 10:47)
7
+ ✔ admin via ssh @done (13-06-15 10:53)
8
+ ☐ wiki
6
9
 
7
- futuro:
8
- divulgar
9
- Aoo (gritano-web): mesma interface, só que em um rails app (com login e senha)
10
+ v2.1.0:
11
+ colorir o terminal
12
+ melhorar o help
13
+ ☐ melhorar o output dos comandos
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 2.0.0
@@ -3,5 +3,12 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
  $LOAD_PATH.unshift(File.dirname(__FILE__))
4
4
 
5
5
  require 'gritano'
6
+ require 'etc'
6
7
 
7
- puts Gritano::CLI::execute(ARGV)
8
+ begin
9
+ load File.join(Etc.getpwuid.dir, '.gritano/local.gritano')
10
+ rescue LoadError => e
11
+ puts "WARNING: GRITANO IS NOT INSTALLED." unless ARGV[0] == 'init'
12
+ end
13
+
14
+ Gritano::CLI::Console::Local.start
@@ -1,6 +1,20 @@
1
1
  #!/usr/bin/env ruby
2
- $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
4
 
4
5
  require 'gritano'
5
6
 
6
- puts Gritano::CLI::check((ENV['SSH_ORIGINAL_COMMAND'] || '').split(' '), ARGV[0])
7
+ ENV['SSH_ORIGINAL_COMMAND'] ||= ''
8
+ remote_user = ARGV[0]
9
+ ARGV.replace(ENV['SSH_ORIGINAL_COMMAND'].split(' '))
10
+ ARGV[0] = ARGV[0].gsub('-', ':') if ARGV[0]
11
+
12
+ load File.join(Etc.getpwuid.dir, '.gritano/local.gritano')
13
+
14
+ Gritano::CLI::Config.remote_user = remote_user
15
+
16
+ if ['git:receive:pack', 'git:upload:pack'].include? ARGV[0]
17
+ Gritano::CLI::Console::Git.start
18
+ else
19
+ Gritano::CLI::Console::Remote.start
20
+ end
@@ -5,14 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gritano"
8
- s.version = "1.0.0"
8
+ s.version = "2.0.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Igor Bonadio"]
12
- s.date = "2013-05-29"
13
- s.description = "Gritano is the simplest way to configure your git server over ssh. You can create repositories and manage user access."
12
+ s.date = "2013-06-15"
13
+ s.description = "Gritano is a tool to configure git servers over ssh"
14
14
  s.email = "igorbonadio@gmail.com"
15
- s.executables = ["gritano", "gritano-pub-key", "gritano-remote"]
15
+ s.executables = ["gritano", "gritano-remote"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
18
  "README.rdoc",
@@ -20,259 +20,81 @@ Gem::Specification.new do |s|
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
- ".gritano/config.yml",
24
- ".gritano/database.yml",
25
23
  ".rspec",
26
- ".ssh/.gitignore",
27
24
  ".travis.yml",
28
25
  "Gemfile",
29
26
  "Gemfile.lock",
27
+ "Guardfile",
30
28
  "LICENSE.txt",
31
29
  "README.rdoc",
32
30
  "Rakefile",
33
31
  "VERSION",
34
32
  "bin/gritano",
35
- "bin/gritano-pub-key",
36
33
  "bin/gritano-remote",
37
- "db/migrate/001_create_users.rb",
38
- "db/migrate/002_create_repositories.rb",
39
- "db/migrate/003_create_permissions.rb",
40
- "db/migrate/004_create_keys.rb",
41
- "db/migrate/005_add_admin_to_users.rb",
42
- "db/migrate/006_add_email_to_users.rb",
43
- "db/migrate/007_add_password_to_users.rb",
44
- "db/migrate/008_remove_password_from_user.rb",
45
- "db/migrate/009_remove_email_from_users.rb",
46
- "features/data/config_true.yml",
47
- "features/data/local_commands/repo_add_tmp_jeka_git.txt",
48
- "features/data/local_commands/repo_add_tmp_p_lang_git.txt",
49
- "features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio.txt",
50
- "features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio_jessicaeto.txt",
51
- "features/data/local_commands/repo_list.txt",
52
- "features/data/local_commands/repo_read_add_tmp_gritano_git_arybonadio.txt",
53
- "features/data/local_commands/repo_read_add_tmp_gritano_git_jessicaeto.txt",
54
- "features/data/local_commands/repo_read_add_tmp_p_lang_git_jessicaeto.txt",
55
- "features/data/local_commands/repo_read_rm_tmp_jeka_git_aribonadio.txt",
56
- "features/data/local_commands/repo_read_rm_tmp_jeka_git_igorbonadio.txt",
57
- "features/data/local_commands/repo_read_rm_tmp_p_lang_git_igorbonadio.txt",
58
- "features/data/local_commands/repo_rm_tmp_jeka_git.txt",
59
- "features/data/local_commands/repo_rm_tmp_p_lang_git.txt",
60
- "features/data/local_commands/repo_user_list_tmp_jeka_git.txt",
61
- "features/data/local_commands/repo_user_list_tmp_ruby_git.txt",
62
- "features/data/local_commands/repo_write_add_tmp_gritano_git_arybonadio.txt",
63
- "features/data/local_commands/repo_write_add_tmp_gritano_git_jessicaeto.txt",
64
- "features/data/local_commands/repo_write_add_tmp_p_lang_git_jessicaeto.txt",
65
- "features/data/local_commands/repo_write_rm_tmp_gritano_git_arybonadio.txt",
66
- "features/data/local_commands/repo_write_rm_tmp_gritano_git_igorbonadio.txt",
67
- "features/data/local_commands/repo_write_rm_tmp_p_lang_git_igorbonadio.txt",
68
- "features/data/local_commands/user_add_igorbonadio.txt",
69
- "features/data/local_commands/user_add_jose.txt",
70
- "features/data/local_commands/user_admin_add_arybonadio.txt",
71
- "features/data/local_commands/user_admin_add_igorbonadio.txt",
72
- "features/data/local_commands/user_admin_rm_arybonadio.txt",
73
- "features/data/local_commands/user_admin_rm_igorbonadio.txt",
74
- "features/data/local_commands/user_key_add_igorbonadio_marvin.txt",
75
- "features/data/local_commands/user_key_add_userrr_marvino.txt",
76
- "features/data/local_commands/user_key_list_arybonadio.txt",
77
- "features/data/local_commands/user_key_list_igorbonadio.txt",
78
- "features/data/local_commands/user_key_rm_igorbonadio_eva.txt",
79
- "features/data/local_commands/user_key_rm_igorbonadio_marvino.txt",
80
- "features/data/local_commands/user_list.txt",
81
- "features/data/local_commands/user_repo_list_arybonadio.txt",
82
- "features/data/local_commands/user_repo_list_igorbonadio.txt",
83
- "features/data/local_commands/user_rm_igorbonadio.txt",
84
- "features/data/local_commands/user_rm_jose.txt",
85
- "features/data/local_commands/version.txt",
86
- "features/data/local_help.txt",
87
- "features/data/remote_commands/admin_help_igorbonadio.txt",
88
- "features/data/remote_commands/admin_help_jessicaeto.txt",
89
- "features/data/remote_commands/admin_repo_add_tmp_jeka_git_igorbonadio.txt",
90
- "features/data/remote_commands/admin_repo_add_tmp_jeka_git_jessicaeto.txt",
91
- "features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio.txt",
92
- "features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_igorbonadio.txt",
93
- "features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto.txt",
94
- "features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto_igorbonadio.txt",
95
- "features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto_jessicaeto.txt",
96
- "features/data/remote_commands/admin_repo_add_tmp_p_lang_git_jessicaeto.txt",
97
- "features/data/remote_commands/admin_repo_list_igorbonadio.txt",
98
- "features/data/remote_commands/admin_repo_list_jessicaeto.txt",
99
- "features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_arybonadio_igorbonadio.txt",
100
- "features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_arybonadio_jessicaeto.txt",
101
- "features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_jessicaeto_igorbonadio.txt",
102
- "features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_jessicaeto_jessicaeto.txt",
103
- "features/data/remote_commands/admin_repo_read_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt",
104
- "features/data/remote_commands/admin_repo_read_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt",
105
- "features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_aribonadio_igorbonadio.txt",
106
- "features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_aribonadio_jessicaeto.txt",
107
- "features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_igorbonadio_igorbonadio.txt",
108
- "features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_igorbonadio_jessicaeto.txt",
109
- "features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt",
110
- "features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt",
111
- "features/data/remote_commands/admin_repo_rm_tmp_jeka_git_igorbonadio.txt",
112
- "features/data/remote_commands/admin_repo_rm_tmp_jeka_git_jessicaeto.txt",
113
- "features/data/remote_commands/admin_repo_rm_tmp_p_lang_git_igorbonadio.txt",
114
- "features/data/remote_commands/admin_repo_rm_tmp_p_lang_git_jessicaeto.txt",
115
- "features/data/remote_commands/admin_repo_user_list_tmp_jeka_git_igorbonadio.txt",
116
- "features/data/remote_commands/admin_repo_user_list_tmp_jeka_git_jessicaeto.txt",
117
- "features/data/remote_commands/admin_repo_user_list_tmp_ruby_git_igorbonadio.txt",
118
- "features/data/remote_commands/admin_repo_user_list_tmp_ruby_git_jessicaeto.txt",
119
- "features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_igorbonadio.txt",
120
- "features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_jessicaeto.txt",
121
- "features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_igorbonadio.txt",
122
- "features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_jessicaeto.txt",
123
- "features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt",
124
- "features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt",
125
- "features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_igorbonadio.txt",
126
- "features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_jessicaeto.txt",
127
- "features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_igorbonadio.txt",
128
- "features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_jessicaeto.txt",
129
- "features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt",
130
- "features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt",
131
- "features/data/remote_commands/admin_user_add_igorbonadio_igorbonadio.txt",
132
- "features/data/remote_commands/admin_user_add_igorbonadio_jessicaeto.txt",
133
- "features/data/remote_commands/admin_user_add_jose_igorbonadio.txt",
134
- "features/data/remote_commands/admin_user_add_jose_jessicaeto.txt",
135
- "features/data/remote_commands/admin_user_admin_add_arybonadio_igorbonadio.txt",
136
- "features/data/remote_commands/admin_user_admin_add_arybonadio_jessicaeto.txt",
137
- "features/data/remote_commands/admin_user_admin_add_igorbonadio_igorbonadio.txt",
138
- "features/data/remote_commands/admin_user_admin_add_igorbonadio_jessicaeto.txt",
139
- "features/data/remote_commands/admin_user_admin_rm_arybonadio_igorbonadio.txt",
140
- "features/data/remote_commands/admin_user_admin_rm_arybonadio_jessicaeto.txt",
141
- "features/data/remote_commands/admin_user_admin_rm_igorbonadio_igorbonadio.txt",
142
- "features/data/remote_commands/admin_user_admin_rm_igorbonadio_jessicaeto.txt",
143
- "features/data/remote_commands/admin_user_key_add_igorbonadio_marvin_igorbonadio.txt",
144
- "features/data/remote_commands/admin_user_key_add_igorbonadio_marvin_jessicaeto.txt",
145
- "features/data/remote_commands/admin_user_key_add_userrr_marvino_igorbonadio.txt",
146
- "features/data/remote_commands/admin_user_key_add_userrr_marvino_jessicaeto.txt",
147
- "features/data/remote_commands/admin_user_key_list_arybonadio_igorbonadio.txt",
148
- "features/data/remote_commands/admin_user_key_list_arybonadio_jessicaeto.txt",
149
- "features/data/remote_commands/admin_user_key_list_igorbonadio_igorbonadio.txt",
150
- "features/data/remote_commands/admin_user_key_list_igorbonadio_jessicaeto.txt",
151
- "features/data/remote_commands/admin_user_key_rm_igorbonadio_eva_igorbonadio.txt",
152
- "features/data/remote_commands/admin_user_key_rm_igorbonadio_eva_jessicaeto.txt",
153
- "features/data/remote_commands/admin_user_key_rm_igorbonadio_marvino_igorbonadio.txt",
154
- "features/data/remote_commands/admin_user_key_rm_igorbonadio_marvino_jessicaeto.txt",
155
- "features/data/remote_commands/admin_user_list_igorbonadio.txt",
156
- "features/data/remote_commands/admin_user_list_jessicaeto.txt",
157
- "features/data/remote_commands/admin_user_repo_list_arybonadio_igorbonadio.txt",
158
- "features/data/remote_commands/admin_user_repo_list_arybonadio_jessicaeto.txt",
159
- "features/data/remote_commands/admin_user_repo_list_igorbonadio_igorbonadio.txt",
160
- "features/data/remote_commands/admin_user_repo_list_igorbonadio_jessicaeto.txt",
161
- "features/data/remote_commands/admin_user_rm_igorbonadio_igorbonadio.txt",
162
- "features/data/remote_commands/admin_user_rm_igorbonadio_jessicaeto.txt",
163
- "features/data/remote_commands/admin_user_rm_jose_igorbonadio.txt",
164
- "features/data/remote_commands/admin_user_rm_jose_jessicaeto.txt",
165
- "features/data/remote_commands/admin_version_igorbonadio.txt",
166
- "features/data/remote_commands/admin_version_jessicaeto.txt",
167
- "features/data/remote_commands/email_get_igorbonadio.txt",
168
- "features/data/remote_commands/email_get_jessicaeto.txt",
169
- "features/data/remote_commands/email_update_email@server_com_igorbonadio.txt",
170
- "features/data/remote_commands/email_update_email@server_com_jessicaeto.txt",
171
- "features/data/remote_commands/help_igorbonadio.txt",
172
- "features/data/remote_commands/help_jessicaeto.txt",
173
- "features/data/remote_commands/invalid_command_igorbonadio.txt",
174
- "features/data/remote_commands/invalid_command_jessicaeto.txt",
175
- "features/data/remote_commands/key_add_keyname_igorbonadio.txt",
176
- "features/data/remote_commands/key_add_keyname_jessicaeto.txt",
177
- "features/data/remote_commands/key_list_igorbonadio.txt",
178
- "features/data/remote_commands/key_list_jessicaeto.txt",
179
- "features/data/remote_commands/key_rm_hal_igorbonadio.txt",
180
- "features/data/remote_commands/key_rm_hal_jessicaeto.txt",
181
- "features/data/remote_commands/repo_list_igorbonadio.txt",
182
- "features/data/remote_commands/repo_list_jessicaeto.txt",
183
- "features/data/remote_commands/version_igorbonadio.txt",
184
- "features/data/remote_commands/version_jessicaeto.txt",
185
- "features/data/remote_help.txt",
186
- "features/install.feature",
187
- "features/local.feature",
188
- "features/pub_key.feature",
189
- "features/remote.feature",
190
- "features/step_definitions/background_step.rb",
191
- "features/step_definitions/install_step.rb",
192
- "features/step_definitions/local_step.rb",
193
- "features/step_definitions/pub_key_step.rb",
194
- "features/step_definitions/remote_step.rb",
195
- "features/support/database_cleaner.rb",
196
- "features/support/env.rb",
197
34
  "gritano.gemspec",
198
35
  "lib/gritano.rb",
199
- "lib/gritano/cli.rb",
200
36
  "lib/gritano/config.rb",
201
- "lib/gritano/console.rb",
202
37
  "lib/gritano/console/base.rb",
203
- "lib/gritano/console/executor.rb",
204
- "lib/gritano/console/gritano.rb",
205
- "lib/gritano/console/installer.rb",
38
+ "lib/gritano/console/git.rb",
39
+ "lib/gritano/console/local.rb",
206
40
  "lib/gritano/console/remote.rb",
207
- "lib/gritano/models.rb",
208
- "lib/gritano/models/key.rb",
209
- "lib/gritano/models/permission.rb",
210
- "lib/gritano/models/repository.rb",
211
- "lib/gritano/models/user.rb",
212
- "spec/cli_spec.rb",
213
- "spec/config_spec.rb",
214
- "spec/console_base_spec.rb",
215
- "spec/console_executor_spec.rb",
216
- "spec/console_gritano_spec.rb",
217
- "spec/console_installer_spec.rb",
218
- "spec/console_remote_spec.rb",
219
- "spec/console_spec.rb",
220
- "spec/data/help_command_name.txt",
221
- "spec/model_key_spec.rb",
222
- "spec/model_permission_spec.rb",
223
- "spec/model_repository_spec.rb",
224
- "spec/model_user_spec.rb",
225
- "spec/spec_helper.rb"
41
+ "lib/gritano/core/key.rb",
42
+ "lib/gritano/core/user.rb",
43
+ "lib/gritano/helpers.rb",
44
+ "lib/gritano/renderer.rb",
45
+ "lib/gritano/thor.rb",
46
+ "spec/data/development.yml",
47
+ "spec/gritano/console/git_spec.rb",
48
+ "spec/gritano/console/local_spec.rb",
49
+ "spec/gritano/console/remote_spec.rb",
50
+ "spec/gritano/core/key_spec.rb",
51
+ "spec/gritano/core/user_spec.rb",
52
+ "spec/gritano/helpers_spec.rb",
53
+ "spec/gritano/thor_spec.rb",
54
+ "spec/spec_helper.rb",
55
+ "templates/local.gritano",
56
+ "templates/remote.gritano"
226
57
  ]
227
- s.homepage = "http://gritano.org"
58
+ s.homepage = "http://github.com/igorbonadio/gritano"
228
59
  s.licenses = ["MIT"]
229
60
  s.require_paths = ["lib"]
230
61
  s.rubygems_version = "1.8.25"
231
- s.summary = "Gritano is a tool to configure your git server over ssh"
62
+ s.summary = "Gritano is a tool to configure git servers over ssh"
232
63
 
233
64
  if s.respond_to? :specification_version then
234
65
  s.specification_version = 3
235
66
 
236
67
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
237
- s.add_runtime_dependency(%q<activerecord>, [">= 3.2.8"])
238
- s.add_runtime_dependency(%q<sqlite3>, [">= 1.3.6"])
239
- s.add_runtime_dependency(%q<grit>, [">= 2.5.0"])
240
- s.add_runtime_dependency(%q<terminal-table>, [">= 1.4.5"])
241
- s.add_runtime_dependency(%q<bcrypt-ruby>, [">= 0"])
242
- s.add_development_dependency(%q<rspec>, [">= 2.11.0"])
243
- s.add_development_dependency(%q<rdoc>, [">= 3.12"])
244
- s.add_development_dependency(%q<cucumber>, [">= 1.2.1"])
245
- s.add_development_dependency(%q<bundler>, [">= 1.0"])
246
- s.add_development_dependency(%q<jeweler>, [">= 1.8.4"])
247
- s.add_development_dependency(%q<simplecov>, [">= 0.6.4"])
248
- s.add_development_dependency(%q<database_cleaner>, [">= 0.8.0"])
68
+ s.add_runtime_dependency(%q<thor>, ["~> 0.18.1"])
69
+ s.add_runtime_dependency(%q<terminal-table>, ["~> 1.4.5"])
70
+ s.add_runtime_dependency(%q<gritano-core>, ["~> 2.0.0"])
71
+ s.add_runtime_dependency(%q<sqlite3>, ["~> 1.3.7"])
72
+ s.add_development_dependency(%q<rspec>, ["~> 2.13.0"])
73
+ s.add_development_dependency(%q<rdoc>, ["~> 4.0.0"])
74
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
75
+ s.add_development_dependency(%q<simplecov>, ["~> 0.7.0"])
76
+ s.add_development_dependency(%q<guard-rspec>, [">= 0"])
249
77
  else
250
- s.add_dependency(%q<activerecord>, [">= 3.2.8"])
251
- s.add_dependency(%q<sqlite3>, [">= 1.3.6"])
252
- s.add_dependency(%q<grit>, [">= 2.5.0"])
253
- s.add_dependency(%q<terminal-table>, [">= 1.4.5"])
254
- s.add_dependency(%q<bcrypt-ruby>, [">= 0"])
255
- s.add_dependency(%q<rspec>, [">= 2.11.0"])
256
- s.add_dependency(%q<rdoc>, [">= 3.12"])
257
- s.add_dependency(%q<cucumber>, [">= 1.2.1"])
258
- s.add_dependency(%q<bundler>, [">= 1.0"])
259
- s.add_dependency(%q<jeweler>, [">= 1.8.4"])
260
- s.add_dependency(%q<simplecov>, [">= 0.6.4"])
261
- s.add_dependency(%q<database_cleaner>, [">= 0.8.0"])
78
+ s.add_dependency(%q<thor>, ["~> 0.18.1"])
79
+ s.add_dependency(%q<terminal-table>, ["~> 1.4.5"])
80
+ s.add_dependency(%q<gritano-core>, ["~> 2.0.0"])
81
+ s.add_dependency(%q<sqlite3>, ["~> 1.3.7"])
82
+ s.add_dependency(%q<rspec>, ["~> 2.13.0"])
83
+ s.add_dependency(%q<rdoc>, ["~> 4.0.0"])
84
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
85
+ s.add_dependency(%q<simplecov>, ["~> 0.7.0"])
86
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
262
87
  end
263
88
  else
264
- s.add_dependency(%q<activerecord>, [">= 3.2.8"])
265
- s.add_dependency(%q<sqlite3>, [">= 1.3.6"])
266
- s.add_dependency(%q<grit>, [">= 2.5.0"])
267
- s.add_dependency(%q<terminal-table>, [">= 1.4.5"])
268
- s.add_dependency(%q<bcrypt-ruby>, [">= 0"])
269
- s.add_dependency(%q<rspec>, [">= 2.11.0"])
270
- s.add_dependency(%q<rdoc>, [">= 3.12"])
271
- s.add_dependency(%q<cucumber>, [">= 1.2.1"])
272
- s.add_dependency(%q<bundler>, [">= 1.0"])
273
- s.add_dependency(%q<jeweler>, [">= 1.8.4"])
274
- s.add_dependency(%q<simplecov>, [">= 0.6.4"])
275
- s.add_dependency(%q<database_cleaner>, [">= 0.8.0"])
89
+ s.add_dependency(%q<thor>, ["~> 0.18.1"])
90
+ s.add_dependency(%q<terminal-table>, ["~> 1.4.5"])
91
+ s.add_dependency(%q<gritano-core>, ["~> 2.0.0"])
92
+ s.add_dependency(%q<sqlite3>, ["~> 1.3.7"])
93
+ s.add_dependency(%q<rspec>, ["~> 2.13.0"])
94
+ s.add_dependency(%q<rdoc>, ["~> 4.0.0"])
95
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
96
+ s.add_dependency(%q<simplecov>, ["~> 0.7.0"])
97
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
276
98
  end
277
99
  end
278
100