Sha256: 191d2c7b6434cae88399b59cf4e031cb094da1d9bcac92f3db06e4d9f8017995
Contents?: true
Size: 842 Bytes
Versions: 3
Compression:
Stored size: 842 Bytes
Contents
module PoolParty module Resources =begin rdoc rdoc == Directory The directory resource is used to describe a directory that should be present on all of the instances. == Usage has_directory 'name', :from => '/local/path', :to => '/path/on/server/' The above example will place the contents of '/local/path' at '/path/on/server/name' has_directory(:name => '/etc/apache2') == Options * <tt>name</tt> Describe the location of the file with the name * <tt>mode</tt> Describe the mode of the file (default: 644) * <tt>owner</tt> The owner of the file (default: poolparty user) =end class Directory < Resource dsl_methods :owner default_options({ :recursive => true, :mode => 0644 }) def present :create end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-1.2.3 | lib/poolparty/resources/directory.rb |
auser-poolparty-1.2.4 | lib/poolparty/resources/directory.rb |
auser-poolparty-1.2.7 | lib/poolparty/resources/directory.rb |