Sha256: 470e7c99d48077bc95ad40e7c0e2e96ded566c3d6c3695fc72d8ba2a5ecb5cd2

Contents?: true

Size: 421 Bytes

Versions: 30

Compression:

Stored size: 421 Bytes

Contents

# windows command line doesn't like single quotes
module Mercurial
  class Shell
    def self.interpolate_arguments(cmd_with_args)
      cmd_with_args.shift.tap do |cmd|
        cmd.gsub!(/\?/) do
          if Lolcommits::Platform.platform_windows?
            "\"#{cmd_with_args.shift}\""
          else
            cmd_with_args.shift.to_s.enclose_in_single_quotes
          end
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
lolcommits-0.12.1 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.12.0 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.11.0 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.11.0.pre lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.10.0 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.10.0.pre1 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.8 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.7 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.7.pre1 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.6 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.5 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.5.pre1 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.4 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.4.pre1 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.3 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.3.pre3 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.3.pre2 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.3.pre1 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.2 lib/core_ext/mercurial-ruby/shell.rb
lolcommits-0.9.2.pre1 lib/core_ext/mercurial-ruby/shell.rb