gritano 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +9 -17
- data/Gemfile.lock +78 -50
- data/Guardfile +9 -0
- data/README.rdoc +23 -24
- data/Rakefile +8 -12
- data/TODO +12 -8
- data/VERSION +1 -1
- data/bin/gritano +8 -1
- data/bin/gritano-remote +16 -2
- data/gritano.gemspec +52 -230
- data/lib/gritano.rb +12 -6
- data/lib/gritano/config.rb +11 -31
- data/lib/gritano/console/base.rb +6 -74
- data/lib/gritano/console/git.rb +29 -0
- data/lib/gritano/console/local.rb +131 -0
- data/lib/gritano/console/remote.rb +47 -93
- data/lib/gritano/core/key.rb +18 -0
- data/lib/gritano/core/user.rb +12 -0
- data/lib/gritano/helpers.rb +52 -0
- data/lib/gritano/renderer.rb +36 -0
- data/lib/gritano/thor.rb +27 -0
- data/spec/data/development.yml +2 -0
- data/spec/gritano/console/git_spec.rb +55 -0
- data/spec/gritano/console/local_spec.rb +148 -0
- data/spec/gritano/console/remote_spec.rb +56 -0
- data/spec/gritano/core/key_spec.rb +21 -0
- data/spec/gritano/core/user_spec.rb +43 -0
- data/spec/gritano/helpers_spec.rb +113 -0
- data/spec/gritano/thor_spec.rb +29 -0
- data/spec/spec_helper.rb +1 -16
- data/templates/local.gritano +4 -0
- data/templates/remote.gritano +5 -0
- metadata +61 -280
- data/.gritano/config.yml +0 -2
- data/.gritano/database.yml +0 -2
- data/.ssh/.gitignore +0 -4
- data/bin/gritano-pub-key +0 -15
- data/db/migrate/001_create_users.rb +0 -8
- data/db/migrate/002_create_repositories.rb +0 -9
- data/db/migrate/003_create_permissions.rb +0 -10
- data/db/migrate/004_create_keys.rb +0 -11
- data/db/migrate/005_add_admin_to_users.rb +0 -10
- data/db/migrate/006_add_email_to_users.rb +0 -10
- data/db/migrate/007_add_password_to_users.rb +0 -10
- data/db/migrate/008_remove_password_from_user.rb +0 -10
- data/db/migrate/009_remove_email_from_users.rb +0 -10
- data/features/data/config_true.yml +0 -2
- data/features/data/local_commands/repo_add_tmp_jeka_git.txt +0 -1
- data/features/data/local_commands/repo_add_tmp_p_lang_git.txt +0 -1
- data/features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio.txt +0 -1
- data/features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/local_commands/repo_list.txt +0 -6
- data/features/data/local_commands/repo_read_add_tmp_gritano_git_arybonadio.txt +0 -1
- data/features/data/local_commands/repo_read_add_tmp_gritano_git_jessicaeto.txt +0 -1
- data/features/data/local_commands/repo_read_add_tmp_p_lang_git_jessicaeto.txt +0 -1
- data/features/data/local_commands/repo_read_rm_tmp_jeka_git_aribonadio.txt +0 -1
- data/features/data/local_commands/repo_read_rm_tmp_jeka_git_igorbonadio.txt +0 -1
- data/features/data/local_commands/repo_read_rm_tmp_p_lang_git_igorbonadio.txt +0 -1
- data/features/data/local_commands/repo_rm_tmp_jeka_git.txt +0 -1
- data/features/data/local_commands/repo_rm_tmp_p_lang_git.txt +0 -1
- data/features/data/local_commands/repo_user_list_tmp_jeka_git.txt +0 -6
- data/features/data/local_commands/repo_user_list_tmp_ruby_git.txt +0 -1
- data/features/data/local_commands/repo_write_add_tmp_gritano_git_arybonadio.txt +0 -1
- data/features/data/local_commands/repo_write_add_tmp_gritano_git_jessicaeto.txt +0 -1
- data/features/data/local_commands/repo_write_add_tmp_p_lang_git_jessicaeto.txt +0 -1
- data/features/data/local_commands/repo_write_rm_tmp_gritano_git_arybonadio.txt +0 -1
- data/features/data/local_commands/repo_write_rm_tmp_gritano_git_igorbonadio.txt +0 -1
- data/features/data/local_commands/repo_write_rm_tmp_p_lang_git_igorbonadio.txt +0 -1
- data/features/data/local_commands/user_add_igorbonadio.txt +0 -1
- data/features/data/local_commands/user_add_jose.txt +0 -1
- data/features/data/local_commands/user_admin_add_arybonadio.txt +0 -1
- data/features/data/local_commands/user_admin_add_igorbonadio.txt +0 -1
- data/features/data/local_commands/user_admin_rm_arybonadio.txt +0 -1
- data/features/data/local_commands/user_admin_rm_igorbonadio.txt +0 -1
- data/features/data/local_commands/user_key_add_igorbonadio_marvin.txt +0 -1
- data/features/data/local_commands/user_key_add_userrr_marvino.txt +0 -1
- data/features/data/local_commands/user_key_list_arybonadio.txt +0 -1
- data/features/data/local_commands/user_key_list_igorbonadio.txt +0 -5
- data/features/data/local_commands/user_key_rm_igorbonadio_eva.txt +0 -1
- data/features/data/local_commands/user_key_rm_igorbonadio_marvino.txt +0 -1
- data/features/data/local_commands/user_list.txt +0 -6
- data/features/data/local_commands/user_repo_list_arybonadio.txt +0 -1
- data/features/data/local_commands/user_repo_list_igorbonadio.txt +0 -6
- data/features/data/local_commands/user_rm_igorbonadio.txt +0 -1
- data/features/data/local_commands/user_rm_jose.txt +0 -1
- data/features/data/local_commands/version.txt +0 -1
- data/features/data/local_help.txt +0 -32
- data/features/data/remote_commands/admin_help_igorbonadio.txt +0 -32
- data/features/data/remote_commands/admin_help_jessicaeto.txt +0 -32
- data/features/data/remote_commands/admin_repo_add_tmp_jeka_git_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_add_tmp_jeka_git_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_igorbonadio_jessicaeto_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_add_tmp_p_lang_git_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_list_igorbonadio.txt +0 -6
- data/features/data/remote_commands/admin_repo_list_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_arybonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_arybonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_jessicaeto_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_add_tmp_gritano_git_jessicaeto_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_aribonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_aribonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_igorbonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_rm_tmp_jeka_git_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_rm_tmp_jeka_git_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_rm_tmp_jeka_git_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_rm_tmp_p_lang_git_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_rm_tmp_p_lang_git_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_user_list_tmp_jeka_git_igorbonadio.txt +0 -6
- data/features/data/remote_commands/admin_repo_user_list_tmp_jeka_git_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_user_list_tmp_ruby_git_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_user_list_tmp_ruby_git_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_add_igorbonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_add_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_add_jose_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_add_jose_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_admin_add_arybonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_admin_add_arybonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_admin_add_igorbonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_admin_add_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_admin_rm_arybonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_admin_rm_arybonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_admin_rm_igorbonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_admin_rm_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_key_add_igorbonadio_marvin_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_key_add_igorbonadio_marvin_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_key_add_userrr_marvino_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_key_add_userrr_marvino_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_key_list_arybonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_key_list_arybonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_key_list_igorbonadio_igorbonadio.txt +0 -5
- data/features/data/remote_commands/admin_user_key_list_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_key_rm_igorbonadio_eva_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_key_rm_igorbonadio_eva_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_key_rm_igorbonadio_marvino_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_key_rm_igorbonadio_marvino_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_list_igorbonadio.txt +0 -6
- data/features/data/remote_commands/admin_user_list_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_repo_list_arybonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_repo_list_arybonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_repo_list_igorbonadio_igorbonadio.txt +0 -6
- data/features/data/remote_commands/admin_user_repo_list_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_rm_igorbonadio_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_rm_igorbonadio_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_user_rm_jose_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_user_rm_jose_jessicaeto.txt +0 -1
- data/features/data/remote_commands/admin_version_igorbonadio.txt +0 -1
- data/features/data/remote_commands/admin_version_jessicaeto.txt +0 -1
- data/features/data/remote_commands/email_get_igorbonadio.txt +0 -1
- data/features/data/remote_commands/email_get_jessicaeto.txt +0 -1
- data/features/data/remote_commands/email_update_email@server_com_igorbonadio.txt +0 -1
- data/features/data/remote_commands/email_update_email@server_com_jessicaeto.txt +0 -1
- data/features/data/remote_commands/help_igorbonadio.txt +0 -14
- data/features/data/remote_commands/help_jessicaeto.txt +0 -14
- data/features/data/remote_commands/invalid_command_igorbonadio.txt +0 -14
- data/features/data/remote_commands/invalid_command_jessicaeto.txt +0 -14
- data/features/data/remote_commands/key_add_keyname_igorbonadio.txt +0 -1
- data/features/data/remote_commands/key_add_keyname_jessicaeto.txt +0 -1
- data/features/data/remote_commands/key_list_igorbonadio.txt +0 -5
- data/features/data/remote_commands/key_list_jessicaeto.txt +0 -5
- data/features/data/remote_commands/key_rm_hal_igorbonadio.txt +0 -1
- data/features/data/remote_commands/key_rm_hal_jessicaeto.txt +0 -1
- data/features/data/remote_commands/repo_list_igorbonadio.txt +0 -6
- data/features/data/remote_commands/repo_list_jessicaeto.txt +0 -5
- data/features/data/remote_commands/version_igorbonadio.txt +0 -1
- data/features/data/remote_commands/version_jessicaeto.txt +0 -1
- data/features/data/remote_help.txt +0 -14
- data/features/install.feature +0 -40
- data/features/local.feature +0 -80
- data/features/pub_key.feature +0 -25
- data/features/remote.feature +0 -150
- data/features/step_definitions/background_step.rb +0 -26
- data/features/step_definitions/install_step.rb +0 -30
- data/features/step_definitions/local_step.rb +0 -25
- data/features/step_definitions/pub_key_step.rb +0 -15
- data/features/step_definitions/remote_step.rb +0 -49
- data/features/support/database_cleaner.rb +0 -15
- data/features/support/env.rb +0 -30
- data/lib/gritano/cli.rb +0 -49
- data/lib/gritano/console.rb +0 -26
- data/lib/gritano/console/executor.rb +0 -298
- data/lib/gritano/console/gritano.rb +0 -35
- data/lib/gritano/console/installer.rb +0 -55
- data/lib/gritano/models.rb +0 -7
- data/lib/gritano/models/key.rb +0 -37
- data/lib/gritano/models/permission.rb +0 -39
- data/lib/gritano/models/repository.rb +0 -29
- data/lib/gritano/models/user.rb +0 -39
- data/spec/cli_spec.rb +0 -26
- data/spec/config_spec.rb +0 -64
- data/spec/console_base_spec.rb +0 -61
- data/spec/console_executor_spec.rb +0 -183
- data/spec/console_gritano_spec.rb +0 -121
- data/spec/console_installer_spec.rb +0 -28
- data/spec/console_remote_spec.rb +0 -70
- data/spec/console_spec.rb +0 -27
- data/spec/data/help_command_name.txt +0 -7
- data/spec/model_key_spec.rb +0 -44
- data/spec/model_permission_spec.rb +0 -72
- data/spec/model_repository_spec.rb +0 -56
- data/spec/model_user_spec.rb +0 -96
data/features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: An error occurred. Permissions was not modified.
|
data/features/data/remote_commands/admin_repo_read_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
Repository tmp/jeka.git removed successfully.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: Repository tmp/p-lang.git could not be removed.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: Repository tmp/ruby.git doesn't exist.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_igorbonadio.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: An error occurred. Permissions was not modified.
|
data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_arybonadio_jessicaeto.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_igorbonadio.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
User jessicaeto has write access to tmp/gritano.git.
|
data/features/data/remote_commands/admin_repo_write_add_tmp_gritano_git_jessicaeto_jessicaeto.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
data/features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_igorbonadio.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: An error occurred. Permissions was not modified.
|
data/features/data/remote_commands/admin_repo_write_add_tmp_p_lang_git_jessicaeto_jessicaeto.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_igorbonadio.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: An error occurred. Permissions was not modified.
|
data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_arybonadio_jessicaeto.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_igorbonadio.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
User igorbonadio has not write access to tmp/gritano.git.
|
data/features/data/remote_commands/admin_repo_write_rm_tmp_gritano_git_igorbonadio_jessicaeto.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
data/features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_igorbonadio.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: An error occurred. Permissions was not modified.
|
data/features/data/remote_commands/admin_repo_write_rm_tmp_p_lang_git_igorbonadio_jessicaeto.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: Login has already been taken.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
User jose added.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: User arybonadio could not be modified
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
Now, user igorbonadio is an administrator
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: User arybonadio could not be modified
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
Now, user igorbonadio is not an administrator
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
Key added successfully.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: Key could not be added.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: User arybonadio is not registered
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
Key removed successfully.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: Key could not be removed.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: User arybonadio is not registered
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
User igorbonadio removed.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: User jose could not be removed.
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
v{{VERSION}}
|
@@ -1 +0,0 @@
|
|
1
|
-
error: access denied
|
@@ -1 +0,0 @@
|
|
1
|
-
error: User does not have email.
|
@@ -1 +0,0 @@
|
|
1
|
-
jessica@eto.com
|
@@ -1 +0,0 @@
|
|
1
|
-
Email added.
|
@@ -1 +0,0 @@
|
|
1
|
-
Email added.
|
@@ -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 +0,0 @@
|
|
1
|
-
error: Key could not be removed.
|
@@ -1 +0,0 @@
|
|
1
|
-
Key removed successfully.
|
@@ -1 +0,0 @@
|
|
1
|
-
v{{VERSION}}
|
@@ -1 +0,0 @@
|
|
1
|
-
v{{VERSION}}
|
data/features/install.feature
DELETED
@@ -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
|
-
|
data/features/local.feature
DELETED
@@ -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
|
-
|