Class: Serverspec::Type::PhpExtension
- Defined in:
- lib/serverspec/type/php_extension.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #inspect, #to_ary, #to_s
Constructor Details
This class inherits a constructor from Serverspec::Type::Base
Instance Method Details
#loaded? ⇒ Boolean
3 4 5 6 7 8 9 |
# File 'lib/serverspec/type/php_extension.rb', line 3 def loaded? ret = @runner.run_command("php --ri '#{@name}'") return false if ret.exit_status.to_i > 0 true end |