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

Support handle sudo password #51

Merged
merged 1 commit into from Apr 10, 2013
Merged

Support handle sudo password #51

merged 1 commit into from Apr 10, 2013

Conversation

@tomohiro
Copy link
Contributor

@tomohiro tomohiro commented Apr 10, 2013

I've implemented the issue #26

RSpec configuration example

# spec/spec_helper.rb
RSpec.configure do |c|
  c.before do
    # some configuration
    c.ssh   = Net::SSH.start(c.host, user, options)
    c.sudo_password = ENV['SUDO_PASSWORD']
  end
end

And run test.

$ SUDO_PASSWORD=foobar rake spec
@mizzy mizzy merged commit 8f0d1ee into mizzy:master Apr 10, 2013
1 check passed
@mizzy
Copy link
Owner

@mizzy mizzy commented Apr 10, 2013

Very Nice! Thanks!

I've fixed a little. See 917ec94 and 789fd01 .

And released as v0.2.5.

@tomohiro tomohiro deleted the handle-sudo-password branch Apr 10, 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
2 participants