Module: AssLauncher::Cmd::Abstract::Option::Dbsrv Private

Includes:
Support::SrvStrParser
Included in:
Main::SubCommands::MakeIb
Defined in:
lib/ass_launcher/cmd.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Mixin Command option

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Support::SrvStrParser

#parse_srv_str

Instance Attribute Details

#dbsrv_hostObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



305
306
307
# File 'lib/ass_launcher/cmd.rb', line 305

def dbsrv_host
  @dbsrv_host
end

#dbsrv_passObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



305
306
307
# File 'lib/ass_launcher/cmd.rb', line 305

def dbsrv_pass
  @dbsrv_pass
end

#dbsrv_userObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



305
306
307
# File 'lib/ass_launcher/cmd.rb', line 305

def dbsrv_user
  @dbsrv_user
end

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



311
312
313
314
315
316
# File 'lib/ass_launcher/cmd.rb', line 311

def self.included(base)
  base.option '--dbsrv', 'user:pass@dbsrv', 'db server address' do |s|
    parse_dbsrv s
    s
  end
end

Instance Method Details

#parse_dbsrv(s) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



307
308
309
# File 'lib/ass_launcher/cmd.rb', line 307

def parse_dbsrv(s)
  @dbsrv_host, @dbsrv_user, @dbsrv_pass = parse_srv_str(s)
end