Class: OraUtils::SrvctlCommand
- Inherits:
-
OraCommand
- Object
- OraCommand
- OraUtils::SrvctlCommand
- Defined in:
- lib/orabase/utils/srvctl_command.rb
Constant Summary
Constants inherited from OraCommand
OraCommand::ASM_OS_USER_NAME, OraCommand::DEFAULT_TIMEOUT, OraCommand::ORA_OS_USER_NAME, OraCommand::VALID_OPTIONS
Instance Method Summary collapse
- #execute(arguments) ⇒ Object
-
#initialize(options = {}) ⇒ SrvctlCommand
constructor
A new instance of SrvctlCommand.
Methods inherited from OraCommand
Constructor Details
#initialize(options = {}) ⇒ SrvctlCommand
Returns a new instance of SrvctlCommand.
6 7 8 |
# File 'lib/orabase/utils/srvctl_command.rb', line 6 def initialize( = {}) super(:srvctl, ) end |
Instance Method Details
#execute(arguments) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/orabase/utils/srvctl_command.rb', line 10 def execute(arguments) = {:failonfail => true} value = '' command = command_string(arguments) within_time(@timeout) do Puppet.debug "Executing #{@command} command: #{arguments} as #{os_user}" value = Puppet::Util::Execution.execute(command, ) end value end |