class Crowbar::Client::App::Database
A Thor based CLI wrapper for batch commands
Public Instance Methods
connect()
click to toggle source
Database
connect command
it will connect to a remote Crowbar
database before Crowbar
installation. This command only works if Crowbar
is not yet installed.
@return [String] a formatted response from the server
# File lib/crowbar/client/app/database.rb, line 135 def connect Command::Database::Connect.new( *command_params ).execute rescue => e catch_errors(e) end
create()
click to toggle source
Database
create command
it will set up a new Crowbar
database before Crowbar
installation. This command only works if Crowbar
is not yet installed.
@return [String] a formatted response from the server
# File lib/crowbar/client/app/database.rb, line 60 def create Command::Database::Create.new( *command_params ).execute rescue => e catch_errors(e) end
test()
click to toggle source
Database
test command
it will test the connection to a remote Crowbar
database before Crowbar
installation. This command only works if Crowbar
is not yet installed.
@return [String] a formatted response from the server
# File lib/crowbar/client/app/database.rb, line 210 def test Command::Database::Test.new( *command_params ).execute rescue => e catch_errors(e) end