Sha256: c2f530a6ce84038be724b728ef708ca3c0f5215f41c4df98cfd7746a03d3d0bf
Contents?: true
Size: 1.56 KB
Versions: 4
Compression:
Stored size: 1.56 KB
Contents
#require "storazzo/ric_disk/abstract_ric_disk" #require "abstract_ric_disk" module Storazzo::Media class Storazzo::Media::LocalFolder < Storazzo::Media::AbstractRicDisk attr_accessor :local_mountpoint, :wr def initialize(local_mount) puts "[Storazzo::Media::LocalFolder] initialize" @local_mountpoint = File.expand_path(local_mount) raise "Sorry local mount doesnt exist!" unless File.exist?(@local_mountpoint) @wr = File.writable?(stats_filename_default_fullpath) # .writeable? stats_file_smart_fullpath #super.initialize(local_mount) rescue "SUPER_ERROR: #{$!}" super(local_mount) rescue "SUPER_ERROR: #{$!}" end def self.list_all # get lisrts from Config singletone #puts " self.list_all: loading config " config = Storazzo::RicDiskConfig.instance # # ).get_config #puts config['Config']['AdditionalMountDirs'] #puts "TODO see config: #{config}" #[42, 43] #deb config.get_local_folders config.get_local_folders end def parse(opts={}) puts "LF.parse(#{opts}): TODO Sbrodola inside the dir: #{local_mountpoint}" parse_block_storage_folder() end def path @local_mountpoint end def writeable? File.writable?(@local_mountpoint) end def default_stats_filename #'42' Storazzo::RicDiskStatsFile.default_name end end end
Version data entries
4 entries across 4 versions & 1 rubygems