nesquena-cap-recipes 0.2.16 → 0.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 16
2
+ :patch: 17
3
3
  :major: 0
4
4
  :minor: 2
@@ -101,10 +101,12 @@ Capistrano::Configuration.instance(true).load do
101
101
  task :passenger_apache_module, :roles => :web do
102
102
  sudo "#{base_ruby_path}/bin/gem install passenger --no-ri --no-rdoc"
103
103
  input = ''
104
- run "#{sudo} #{base_ruby_path}/bin/passenger-install-apache2-module" do |ch, stream, out|
105
- next if out.chomp == input.chomp || out.chomp == ''
106
- print out
107
- ch.send_data(input = $stdin.gets) if out =~ /(Enter|ENTER)/
104
+ sudo "#{base_ruby_path}/bin/passenger-install-apache2-module", :pty => true do |ch, stream, data|
105
+ if data =~ /Press\sEnter\sto\scontinue/ || data =~ /Press\sENTER\sto\scontinue/
106
+ ch.send_data("\n")
107
+ else
108
+ Capistrano::Configuration.default_io_proc.call(ch, stream, data)
109
+ end
108
110
  end
109
111
  end
110
112
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nesquena-cap-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi