diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-04 09:41:26 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-04 09:41:26 +0200 |
commit | 1d180b7a75183ae463769b6bf09ee4eaf3bfc3d8 (patch) | |
tree | 35d4e520ffeb0291c139dd1be4367270edc54754 /lib/gitlab_shell.rb | |
parent | 451b4a64c0a3e39902ad87dfe034c58d8c6d45dc (diff) | |
download | gitlab-shell-1d180b7a75183ae463769b6bf09ee4eaf3bfc3d8.tar.gz |
GitlabConfig. Fixed adding key
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r-- | lib/gitlab_shell.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index 93acc57..32ee2ac 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -1,5 +1,5 @@ require 'open3' -require 'yaml' +require_relative 'gitlab_config' class GitlabShell attr_accessor :username, :repo_name, :git_cmd, :repos_path @@ -7,8 +7,7 @@ class GitlabShell def initialize @username = ARGV.shift @origin_cmd = ENV['SSH_ORIGINAL_COMMAND'] - @config = YAML.load_file(File.join(ROOT_PATH, 'config.yml')) - @repos_path = @config['repos_path'] + @repos_path = GitlabConfig.new.repos_path end def exec |