Module: Siba::FilePlug
- Included in:
- MiniTest::Unit::TestCase, Siba, Archive::Tar::Archive, Backup, Console, Destination::Dir::DestDir, Encryption::Gpg::Encryption, Encryption::Gpg::Encryption, Encryption::Gpg::Init, FileHelper, Generator, Generator, InstalledPlugins, OptionsBackup, PluginLoader, Restore, Scaffold, SibaTasks, Source::Files::Files, TestFiles, TmpDir, TmpDir, TmpDirPlug
- Defined in:
- lib/siba/siba_file.rb
Overview
Used to inject “siba_file” to classes that include this module
Class Method Summary collapse
- .siba_file ⇒ Object
-
.siba_file=(val) ⇒ Object
It is used in test to insert mock SibaFile object.
Instance Method Summary collapse
Class Method Details
.siba_file ⇒ Object
80 81 82 |
# File 'lib/siba/siba_file.rb', line 80 def self.siba_file @siba_file ||= SibaFile.new end |
.siba_file=(val) ⇒ Object
It is used in test to insert mock SibaFile object
85 86 87 |
# File 'lib/siba/siba_file.rb', line 85 def self.siba_file=(val) @siba_file = val end |