Sha256: f2c89a42d5f8f705191ed104eba5496e776e0333149eb075cf897c9c263b3da5

Contents?: true

Size: 198 Bytes

Versions: 15

Compression:

Stored size: 198 Bytes

Contents

require 'rvm/capistrano/helpers/base'

rvm_with_capistrano do
  def quote_and_escape(text, quote = "'")
    "#{quote}#{text.gsub(/#{quote}/) { |m| "#{quote}\\#{quote}#{quote}" }}#{quote}"
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rvm-capistrano-1.5.6 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.5.5 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.5.4 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.5.3 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.5.2 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.5.1 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.5.0 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.5.0.rc1 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.4.4 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.4.3 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.4.2 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.4.1 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.4.0 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.4.0.rc3 lib/rvm/capistrano/helpers/quote_and_escape.rb
rvm-capistrano-1.4.0.rc2 lib/rvm/capistrano/helpers/quote_and_escape.rb