Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directives give error. Rake tests pass but not directives manually. #9

Closed
AgoristRadio opened this issue Apr 3, 2013 · 2 comments
Closed

Comments

@AgoristRadio
Copy link

k = SSHKey.generate
=> #<SSHKey:0x8ad5950 @type="rsa", @comment="", @Passphrase=nil, @key_object=-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA8mWCKsyGY1d/vYfYh6Cd+Y9gAIJBBA11esN1ETCnlqi3f+lh
......
k.directives = ['no-pty']
NoMethodError: undefined method directives=' for #<SSHKey:0x8adf61c> from (irb):3 from /home/x/.rvm/rubies/ruby-1.9.3-p327-falcon/bin/irb:16:in

'

Same results from gem install or git checkout.

@bensie
Copy link
Owner

bensie commented Apr 3, 2013

Directives were just added and are not in the gem version. I will push 1.5.0 shortly to include it. Should work fine from git though, that's how I'm currently using the new feature in an app.

@bensie
Copy link
Owner

bensie commented Apr 3, 2013

I've pushed version 1.5.1 to RubyGems. Should be good to go!

› gem install sshkey
Successfully installed sshkey-1.5.1
1 gem installed

1.9.3-p392 in sshkey/ on master 
› irb
>> require "sshkey"
=> true
>> k = SSHKey.generate
=> #<SSHKey:0x007fc1bd81c0f0 ...>
>> k.directives = ['no-pty']
=> ["no-pty"]
>> k.ssh_public_key
=> "no-pty ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCv55QyoLIj7y..."

@bensie bensie closed this as completed Apr 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants