Class: Serverspec::Type::PhpConfig
- Defined in:
- lib/serverspec/type/php_config.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Serverspec::Type::Base
Instance Method Details
#value ⇒ Object
4 5 6 7 8 9 |
# File 'lib/serverspec/type/php_config.rb', line 4 def value ret = backend.run_command("php -r 'echo get_cfg_var( \"#{@name}\" );'") val = ret[:stdout] val = val.to_i if val.match(/^\d+$/) val end |