class Gitpaint::GithubClient
Public Class Methods
custom_ssh_script(dir)
click to toggle source
# File lib/gitpaint/github_client.rb, line 13 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
new()
click to toggle source
# File lib/gitpaint/github_client.rb, line 5 def initialize @client = Octokit::Client.new access_token: Config.instance.config.token end
Public Instance Methods
client()
click to toggle source
# File lib/gitpaint/github_client.rb, line 9 def client @client end