Class: PuppetX::EnterpriseModules::Oracle::Sql
- Inherits:
-
Object
- Object
- PuppetX::EnterpriseModules::Oracle::Sql
- Defined in:
- lib/puppet_x/enterprisemodules/oracle/sql.rb
Overview
docs
Instance Attribute Summary collapse
-
#os_user ⇒ Object
readonly
Returns the value of attribute os_user.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#sid ⇒ Object
readonly
Returns the value of attribute sid.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
- #execute(command) ⇒ Object
-
#initialize(options = {}) ⇒ Sql
constructor
A new instance of Sql.
Constructor Details
#initialize(options = {}) ⇒ Sql
Returns a new instance of Sql.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/puppet_x/enterprisemodules/oracle/sql.rb', line 19 def initialize( = {}) @command = SqlplusCommand.new() @sid = @command.sid @os_user = @command.os_user @username = @command.username @password = @command.password @timeout = @command.timeout @daemonized = @command.daemonized # # When a username is specified, we won't use the daemon # @command = if @daemonized && !@username SqlplusDaemon.new() else SqlplusCommand.new() end end |
Instance Attribute Details
#os_user ⇒ Object (readonly)
Returns the value of attribute os_user.
17 18 19 |
# File 'lib/puppet_x/enterprisemodules/oracle/sql.rb', line 17 def os_user @os_user end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
17 18 19 |
# File 'lib/puppet_x/enterprisemodules/oracle/sql.rb', line 17 def password @password end |
#sid ⇒ Object (readonly)
Returns the value of attribute sid.
17 18 19 |
# File 'lib/puppet_x/enterprisemodules/oracle/sql.rb', line 17 def sid @sid end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
17 18 19 |
# File 'lib/puppet_x/enterprisemodules/oracle/sql.rb', line 17 def timeout @timeout end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
17 18 19 |
# File 'lib/puppet_x/enterprisemodules/oracle/sql.rb', line 17 def username @username end |
Instance Method Details
#execute(command) ⇒ Object
37 38 39 40 |
# File 'lib/puppet_x/enterprisemodules/oracle/sql.rb', line 37 def execute(command) create_output_file @command.execute_sql_command(command, @output_file.path) end |