Module: Siba

Extended by:
FilePlug, TmpDirPlug
Defined in:
lib/siba.rb,
lib/siba/backup.rb,
lib/siba/errors.rb,
lib/siba/console.rb,
lib/siba/globals.rb,
lib/siba/restore.rb,
lib/siba/tmp_dir.rb,
lib/siba/version.rb,
lib/siba/scaffold.rb,
lib/siba/generator.rb,
lib/siba/siba_file.rb,
lib/siba/siba_check.rb,
lib/siba/logger_plug.rb,
lib/siba/siba_kernel.rb,
lib/siba/siba_logger.rb,
lib/siba/options_backup.rb,
lib/siba/options_loader.rb,
lib/siba/plugins/plugins.rb,
lib/siba/tasks/siba_task.rb,
lib/siba/tasks/siba_tasks.rb,
lib/siba/helpers/gem_helper.rb,
lib/siba/helpers/file_helper.rb,
lib/siba/helpers/string_helper.rb,
lib/siba/plugins/plugin_loader.rb,
lib/siba/helpers/encoding_helper.rb,
lib/siba/helpers/security_helper.rb,
lib/siba/helpers/password_strength.rb,
lib/siba/plugins/installed_plugins.rb

Defined Under Namespace

Modules: Archive, Destination, Encryption, FilePlug, KernelPlug, LoggerPlug, OptionsLoader, Source, TestFiles, TmpDirPlug Classes: Backup, CheckError, Console, ConsoleArgumentError, EncodingHelper, Error, FileHelper, GemHelper, Generator, InstalledPlugins, LogMessage, OptionsBackup, PasswordStrength, PluginLoadError, PluginLoader, Plugins, Restore, Scaffold, SecurityHelper, SibaCheck, SibaFile, SibaKernel, SibaLogger, SibaTask, SibaTasks, StringHelper, TmpDir

Constant Summary collapse

VERSION =
"0.6.0"

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from FilePlug

siba_file, siba_file, siba_file=

Methods included from TmpDirPlug

cleanup_tmp_dir, tmp_dir, tmp_dir_clean?

Methods included from LoggerPlug

close, create, logger, #logger, opened?

Class Attribute Details

.backup_nameObject

Returns the value of attribute backup_name.



9
10
11
# File 'lib/siba/globals.rb', line 9

def backup_name
  @backup_name
end

.current_dirObject

Returns the value of attribute current_dir.



9
10
11
# File 'lib/siba/globals.rb', line 9

def current_dir
  @current_dir
end

.settingsObject

Returns the value of attribute settings.



9
10
11
# File 'lib/siba/globals.rb', line 9

def settings
  @settings
end

Class Method Details

.cleanupObject



13
14
15
16
17
# File 'lib/siba/globals.rb', line 13

def cleanup
  Siba.cleanup_tmp_dir
ensure
  LoggerPlug.close
end