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.91.0 lib/specinfra/command/base.rb
specinfra-2.90.1 lib/specinfra/command/base.rb
specinfra-2.90.0 lib/specinfra/command/base.rb
specinfra-2.89.0 lib/specinfra/command/base.rb
specinfra-2.88.2 lib/specinfra/command/base.rb
specinfra-2.88.1 lib/specinfra/command/base.rb
specinfra-2.88.0 lib/specinfra/command/base.rb
specinfra-2.87.2 lib/specinfra/command/base.rb
specinfra-2.87.1 lib/specinfra/command/base.rb
specinfra-2.87.0 lib/specinfra/command/base.rb
specinfra-2.86.0 lib/specinfra/command/base.rb
specinfra-2.85.1 lib/specinfra/command/base.rb
specinfra-2.85.0 lib/specinfra/command/base.rb
specinfra-2.84.1 lib/specinfra/command/base.rb
specinfra-2.84.0 lib/specinfra/command/base.rb
specinfra-2.83.4 lib/specinfra/command/base.rb
specinfra-2.83.3 lib/specinfra/command/base.rb
specinfra-2.83.2 lib/specinfra/command/base.rb
specinfra-2.83.1 lib/specinfra/command/base.rb
specinfra-2.83.0 lib/specinfra/command/base.rb