Sha256: 7811869feb2b1473e68fe07754b1c76cf7714fb38be6c1213be8a188e813fef8

Contents?: true

Size: 684 Bytes

Versions: 3

Compression:

Stored size: 684 Bytes

Contents

module PoolParty    
  module Resources
        
=begin rdoc

== Symlink

The symlink resource sets a symlink 

== Usage

  has_symlink(:key => '...') do
    # More options. 
    # This block is optional
  end

== Options

* <tt>name</tt> The location of the symlink (target)
* <tt>source</tt> The source of the symlink, the existing file or directory

== Examples

  has_symlink(:name => "/var/www/poolpartyrb.com/public", :source => "/var/www/poolpartyrb.com/poolparty-website/site")
=end
    class Symlink < Resource
      
      dsl_methods :source
      
      def present
        :create
      end
      
      def absent
        :delete!
      end
      
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
auser-poolparty-1.2.3 lib/poolparty/resources/symlink.rb
auser-poolparty-1.2.4 lib/poolparty/resources/symlink.rb
auser-poolparty-1.2.7 lib/poolparty/resources/symlink.rb