Sha256: 233a1bd7d0308a55ffc7df3c96738c0ffa7d588f8a591c0813ee6378f61da529
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 KB
Contents
#require "storazzo/ric_disk/abstract_ric_disk" #require "abstract_ric_disk" module Storazzo::Media class Storazzo::Media::LocalFolder < Storazzo::Media::AbstractRicDisk #extend Storazzo::Common include Storazzo::Common attr_accessor :local_mountpoint, :wr def initialize(local_mount) deb "[Storazzo::Media::LocalFolder] initialize" @local_mountpoint = File.expand_path(local_mount) @description = "Local Folder originally in '#{local_mount}'" raise "Sorry local mount doesnt exist!" unless File.exist?(@local_mountpoint) @wr = writeable? # File.writable?(stats_filename_default_fullpath) # .writeable? stats_file_smart_fullpath #super.initialize(local_mount) rescue "SUPER_ERROR: #{$!}" super(local_mount) rescue "SUPER_ERROR(#{local_mount}): #{$!}" end def self.list_all(config=nil) # get lists from Config singleton config ||= Storazzo::RicDiskConfig.instance # # ).get_config config.load 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
storazzo-0.4.10 | lib/storazzo/media/local_folder.rb |
storazzo-0.4.9 | lib/storazzo/media/local_folder.rb |