Sha256: 959dc150f06cebebd94fe31d835446b0dfb857a30e459dd97e2ba38df7ee039c
Contents?: true
Size: 444 Bytes
Versions: 1
Compression:
Stored size: 444 Bytes
Contents
module Gitpaint class GithubClient include Singleton def initialize @client = Octokit::Client.new access_token: Config.instance.config.token end def client @client end def self.custom_ssh_script dir File.open "#{dir}/custom.sh", 'w' do |f| f.write "#!/bin/sh\n" f.write 'ssh -i "%s" "$@"' % config.ssh_key end FileUtils.chmod '+x', "#{dir}/custom.sh" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitpaint-0.1.0 | lib/gitpaint/github_client.rb |