Sha256: 80ea599e26ef8c1449bc71f8ba61ed91baf30663bb42e3de58cd47d1092b7ddd

Contents?: true

Size: 362 Bytes

Versions: 364

Compression:

Stored size: 362 Bytes

Contents

require 'shellwords'
class Specinfra::Command::Base
  class << self
    class NotImplementedError < Exception; end

    def create
      self
    end

    def escape(target)
      str = case target
            when Regexp
              target.source
            else
              target.to_s
            end

      Shellwords.shellescape(str)
    end
  end
end

Version data entries

364 entries across 364 versions & 3 rubygems

Version Path
specinfra-2.82.5 lib/specinfra/command/base.rb
specinfra-2.82.4 lib/specinfra/command/base.rb
specinfra-2.82.3 lib/specinfra/command/base.rb
specinfra-2.82.2 lib/specinfra/command/base.rb
specinfra-2.82.1 lib/specinfra/command/base.rb
specinfra-2.82.0 lib/specinfra/command/base.rb
specinfra-2.81.0 lib/specinfra/command/base.rb
specinfra-2.80.0 lib/specinfra/command/base.rb
specinfra-2.79.0 lib/specinfra/command/base.rb
specinfra-2.78.2 lib/specinfra/command/base.rb
specinfra-2.78.1 lib/specinfra/command/base.rb
specinfra-2.78.0 lib/specinfra/command/base.rb
specinfra-2.77.3 lib/specinfra/command/base.rb
specinfra-2.77.2 lib/specinfra/command/base.rb
specinfra-2.77.1 lib/specinfra/command/base.rb
specinfra-2.77.0 lib/specinfra/command/base.rb
specinfra-2.76.9 lib/specinfra/command/base.rb
specinfra-2.76.8 lib/specinfra/command/base.rb
specinfra-2.76.7 lib/specinfra/command/base.rb
specinfra-2.76.6 lib/specinfra/command/base.rb