Sha256: 8f4fc56c77f2ef1f16ca4912a9691cb9e846479fbf75d71a99d7c47314b4e301
Contents?: true
Size: 1.46 KB
Versions: 1
Compression:
Stored size: 1.46 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) 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(#{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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
storazzo-0.4.5 | lib/storazzo/media/local_folder.rb |