Sha256: 0654d991c2c885dbf3c69d5664ff2362dd2078e14affb616843eee699185ac3c

Contents?: true

Size: 658 Bytes

Versions: 2

Compression:

Stored size: 658 Bytes

Contents

module Blender::Manifest::Init
  def self.included(base)
    base.class_eval do
      recipe :create_blender_directories
    end
  end

  # create blender directories
  # @return dependency ref for the direcotires creation
  def create_blender_directories
    @create_blender_directories ||=
      begin
        file name = "/var/lib/blender", :owner => "root", :mode => 0700
        dep = file(name)
        file name = "/var/lib/blender/logs", :owner => "root", :mode => 0755, :require => dep
        dep = file(name)
        file name = "/var/lib/blender/tmp", :owner => "root", :mode => 0755, :require => dep
        dep = file(name)
      end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
server-blender-manifest-0.0.14 lib/blender/manifest/init.rb
server-blender-manifest-0.0.13 lib/blender/manifest/init.rb