Sha256: 2feb1cfdd762e3f34cd5b6dda97d56978cef827fd31105841317c00bdb29f5d5

Contents?: true

Size: 235 Bytes

Versions: 46

Compression:

Stored size: 235 Bytes

Contents

module Serverspec::Type
  class PhpConfig < Base
    def value
      ret = @runner.run_command("php -r 'echo get_cfg_var( \"#{@name}\" );'")
      val = ret.stdout
      val = val.to_i if val.match(/^\d+$/)
      val
    end
  end
end

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
serverspec-ruby19-2.24.3 lib/serverspec/type/php_config.rb
serverspec-2.25.0 lib/serverspec/type/php_config.rb
serverspec-2.24.3 lib/serverspec/type/php_config.rb
serverspec-2.24.2 lib/serverspec/type/php_config.rb
serverspec-2.24.1 lib/serverspec/type/php_config.rb
serverspec-2.24.0 lib/serverspec/type/php_config.rb
serverspec-2.23.1 lib/serverspec/type/php_config.rb
serverspec-2.23.0 lib/serverspec/type/php_config.rb
serverspec-2.22.0 lib/serverspec/type/php_config.rb
serverspec-2.21.1 lib/serverspec/type/php_config.rb
serverspec-2.21.0 lib/serverspec/type/php_config.rb
serverspec-2.20.0 lib/serverspec/type/php_config.rb
serverspec-2.19.0 lib/serverspec/type/php_config.rb
serverspec-2.18.0 lib/serverspec/type/php_config.rb
serverspec-2.17.1 lib/serverspec/type/php_config.rb
serverspec-2.17.0 lib/serverspec/type/php_config.rb
serverspec-2.16.0 lib/serverspec/type/php_config.rb
serverspec-2.15.0 lib/serverspec/type/php_config.rb
serverspec-2.14.1 lib/serverspec/type/php_config.rb
serverspec-2.14.0 lib/serverspec/type/php_config.rb