Class: StellarCoreBackup::Filesystem
- Inherits:
-
Object
- Object
- StellarCoreBackup::Filesystem
- Includes:
- Contracts
- Defined in:
- lib/stellar-core-backup/filesystem.rb
Direct Known Subclasses
Defined Under Namespace
Classes: ReadError
Instance Attribute Summary collapse
-
#core_data_dir ⇒ Object
readonly
Returns the value of attribute core_data_dir.
Instance Method Summary collapse
- #backup ⇒ Object
-
#initialize(config) ⇒ Filesystem
constructor
A new instance of Filesystem.
Constructor Details
#initialize(config) ⇒ Filesystem
Returns a new instance of Filesystem.
10 11 12 13 14 |
# File 'lib/stellar-core-backup/filesystem.rb', line 10 def initialize(config) @config = config @working_dir = StellarCoreBackup::Utils.create_working_dir(@config.get('working_dir')) @core_data_dir = get_core_data_dir(@config.get('core_config')) end |
Instance Attribute Details
#core_data_dir ⇒ Object (readonly)
Returns the value of attribute core_data_dir.
7 8 9 |
# File 'lib/stellar-core-backup/filesystem.rb', line 7 def core_data_dir @core_data_dir end |
Instance Method Details
#backup ⇒ Object
17 18 19 |
# File 'lib/stellar-core-backup/filesystem.rb', line 17 def backup() create_core_data_tar() end |