Sha256: 3dd289af6d17704e9fbed41341741d776e58679bd03b4bdc17d2e1c04f30388a

Contents?: true

Size: 735 Bytes

Versions: 7

Compression:

Stored size: 735 Bytes

Contents

require 'fileutils'
require 'net/ssh'
require 'net/sftp'

# class File
#   class << self
#     def ensure_dir_exist directory, options = {}       
#       options = options.symbolize_keys 
#       clean = options.delete :clean
#       raise "unsupported options #{options.keys}!" unless options.empty?
#     
#       FileUtils.rm_r directory, :force => true if clean and File.exist?(directory)
#       FileUtils.mkdir_p directory
#     end
#   
#     def copy_dir_content from, to
#       Dir.glob "#{from}/*" do |item|
#         FileUtils.cp_r item, to
#       end
#     end
#     
#     def copy_dir from, to
#       FileUtils.cp_r from, to
#     end
#     
#     def remove_dir dir
#       FileUtils.rm_r dir
#     end
#   end
# end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
vos-0.0.4 lib/rsh/support.rb
vfs-0.0.4 lib/rsh/support.rb
rsh2-0.0.4 lib/rsh/support.rb
rsh2-0.0.3 lib/rsh/support.rb
rsh2-0.0.2 lib/rsh/support.rb
rsh2-0.0.1 lib/rsh/support.rb
rssh-0.0.1 lib/rsh/support.rb