Sha256: 52572bda8cc9fbd5c03d345addc060e1db7d78370803f6777debfbc47c877cc6

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

module PoolParty    
  module Resources
    
    class Exec < Resource
      
      default_options({
        :path => "/usr/bin:/bin:/usr/local/bin:$PATH"
      })
      
      # Execs cannot have the following parameters
      # We use version in the gempackage resource
      # So we have to exclude it here. Alternatively, we could
      # exclude it in the gempackage, but this is an example
      # of how to exclude it as well
      def disallowed_options
        [:ensure, :name, :source, :version, :download_url, :template]
      end
      
      def key
        name || command
      end
      
      def present
        "running"
      end
                  
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
auser-poolparty-0.2.67 lib/poolparty/pool/resources/exec.rb