Module: CSD
- Defined in:
- lib/csd.rb,
lib/csd/path.rb,
lib/csd/error.rb,
lib/csd/ui/ui.rb,
lib/csd/ui/cli.rb,
lib/csd/options.rb,
lib/csd/version.rb,
lib/csd/commands.rb,
lib/csd/applications.rb,
lib/csd/global_open_struct.rb,
lib/csd/application/default.rb,
lib/csd/application/minisip.rb,
lib/csd/extensions/core/dir.rb,
lib/csd/extensions/core/file.rb,
lib/csd/extensions/core/array.rb,
lib/csd/extensions/core/object.rb,
lib/csd/extensions/core/string.rb,
lib/csd/extensions/gem/platform.rb,
lib/csd/application/default/base.rb,
lib/csd/application/minisip/base.rb,
lib/csd/extensions/core/pathname.rb,
lib/csd/application/minisip/error.rb,
lib/csd/application/minisip/unix/base.rb,
lib/csd/extensions/core/option_parser.rb
Overview
The CSD namespace is given to the entire gem.
Defined Under Namespace
Modules: Application, Commands, Error, Extensions Classes: Applications, CLI, Cmd, CommandsInstance, GlobalOpenStruct, Options, Path, UI
Constant Summary collapse
- Version =
This global variable holds the version number of this gem by reading the VERSION file.
VERSION = File.read(File.join(Path.gem, 'VERSION'))
Class Attribute Summary collapse
-
.executable ⇒ Object
readonly
This String holds the name of the executable the user used to bootstrap this gem.
Class Method Summary collapse
-
.bootstrap(options = {}) ⇒ Object
This method “runs” the whole CSD gem, so to speak.
-
.ui ⇒ Object
This method chooses and holds the user interface instance.
Class Attribute Details
.executable ⇒ Object (readonly)
This String holds the name of the executable the user used to bootstrap this gem
11 12 13 |
# File 'lib/csd.rb', line 11 def executable @executable end |
Class Method Details
.bootstrap(options = {}) ⇒ Object
This method “runs” the whole CSD gem, so to speak.
15 16 17 18 19 20 |
# File 'lib/csd.rb', line 15 def bootstrap(={}) @executable = [:executable] Options.parse! respond_to_incomplete_arguments Applications.current.instance.send("#{Options.action}!".to_sym) end |
.ui ⇒ Object
This method chooses and holds the user interface instance
24 25 26 |
# File 'lib/csd.rb', line 24 def ui @@ui ||= CLI.new end |