Sha256: ce675573d86df2d5ab79ea9371fdf588715bf67245eb7cde602e1ecce358f92c
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
module PoolParty # Require all the files in a directory below the base def require_user_directory(dirname) begin cloud_dir = ::File.dirname($pool_specfile) Dir["#{cloud_dir}/#{dirname}/**"].each {|a| require a } rescue Exception => e vputs "Error requiring user directory #{dirname}: #{e}" end end # Add to the suitcase files below the clouds.rb base directory def pack_user_directory(dirname) begin ::Suitcase::Zipper.add("#{::File.dirname($pool_specfile)}/#{dirname}", "/etc/poolparty") rescue Exception => e vputs "Error packing user directory #{dirname}: #{e}" end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
auser-poolparty-1.2.12 | lib/poolparty/modules/user_helpers.rb |
fairchild-poolparty-1.2.12 | lib/poolparty/modules/user_helpers.rb |