Sha256: 780dfb84d950f69872b974d960907601e74f7c516834f048a133fd25ad0bb5a4
Contents?: true
Size: 858 Bytes
Versions: 2
Compression:
Stored size: 858 Bytes
Contents
# -*- coding: utf-8 -*- module Dcmgr::Drivers class SnapshotStorage include Dcmgr::Helpers::CliHelper attr_reader :volume_snaphost_path def initialize(account_id, bucket, volume_snaphost_path, options = {}) @account_id = account_id @env = [] @volume_snaphost_path = volume_snaphost_path @bucket = bucket @tmp_dir = options[:tmp_dir] || '/var/tmp' end def setenv(key, value) @env.push("#{key}=#{value}") end def clear sh("/bin/rm #{@temporary_file}") if File.exists?(@temporary_file) end def snapshot(filename) raise 'filename is empty' if filename == '' @temporary_file = File.join(@tmp_dir, filename) end def download(filename) end def upload(filename) end def delete(filename) end def check(filename) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
wakame-vdc-agents-11.12.0 | lib/dcmgr/drivers/snapshot_storage.rb |
wakame-vdc-dcmgr-11.12.0 | lib/dcmgr/drivers/snapshot_storage.rb |