lib/serverspec/setup.rb in serverspec-0.2.10 vs lib/serverspec/setup.rb in serverspec-0.2.11

- old
+ new

@@ -99,10 +99,15 @@ require 'serverspec' require 'pathname' ### include requirements ### RSpec.configure do |c| - c.sudo_password = ENV['SUDO_PASSWORD'] + if ENV['ASK_SUDO_PASSWORD'] + require 'highline/import' + c.sudo_password = ask("Enter sudo password: ") { |q| q.echo = false } + else + c.sudo_password = ENV['SUDO_PASSWORD'] + end ### include backend helper ### ### include os helper ### ### include backend conf ### end EOF