Sha256: abb99531919fb9136d9b12ab1e340daf76e0f0322abeb21439ccae9a0485cbaa

Contents?: true

Size: 1.15 KB

Versions: 5

Compression:

Stored size: 1.15 KB

Contents

#!/usr/bin/env ruby

#--
#   Copyright (C) 2009 Brown Beagle Software
#   Copyright (C) 2008 Darcy Laycock <sutto@sutto.net>
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU Affero General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU Affero General Public License for more details.
#
#   You should have received a copy of the GNU Affero General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
#++


REAL_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__

# Require the proper gitauth file.
require File.expand_path(File.join(File.dirname(REAL_FILE), "..", "lib", "gitauth"))

GitAuth.setup!

# Gitorious does it so I should too!
File.umask(0022)

user_name = ARGV[0]
command   = ENV["SSH_ORIGINAL_COMMAND"]

GitAuth::Client.start!(user_name, command)

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
brownbeagle-gitauth-0.0.2 bin/gitauth-shell
brownbeagle-gitauth-0.0.3.3 bin/gitauth-shell
brownbeagle-gitauth-0.0.3 bin/gitauth-shell
mattman-gitauth-0.0.3.2 bin/gitauth-shell
mattman-gitauth-0.0.3.3 bin/gitauth-shell