Class: BuildMaster::SqlServerDriver
- Inherits:
-
Object
- Object
- BuildMaster::SqlServerDriver
- Defined in:
- lib/buildmaster/project/windows/sql_server_driver.rb
Instance Method Summary collapse
-
#initialize(cotta = Cotta.new) ⇒ SqlServerDriver
constructor
A new instance of SqlServerDriver.
- #start ⇒ Object
- #status ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(cotta = Cotta.new) ⇒ SqlServerDriver
Returns a new instance of SqlServerDriver.
4 5 6 7 |
# File 'lib/buildmaster/project/windows/sql_server_driver.rb', line 4 def initialize(cotta=Cotta.new) @instance_name = 'MSSQLSERVER' @cotta = cotta end |
Instance Method Details
#start ⇒ Object
9 10 11 |
# File 'lib/buildmaster/project/windows/sql_server_driver.rb', line 9 def start execute('start') end |
#status ⇒ Object
13 14 15 |
# File 'lib/buildmaster/project/windows/sql_server_driver.rb', line 13 def status execute('query') end |
#stop ⇒ Object
17 18 19 |
# File 'lib/buildmaster/project/windows/sql_server_driver.rb', line 17 def stop execute('stop') end |