Sha256: a27f6d84832ab6445913f0075f7fa4ff01ca5e42369770c00c7da379d3769d29

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

require 'chef_fs/file_system/base_fs_dir'

# TODO: take environment into account

module ChefFS
  module FileSystem
    class CookbookSubdir < BaseFSDir
      def initialize(name, parent)
        super(name, parent)
        @children = []
      end

      attr_reader :versions
      attr_reader :children

      def add_child(child)
        @children << child
      end

      def rest
        parent.rest
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
knife-essentials-0.1.1 lib/chef_fs/file_system/cookbook_subdir.rb
knife-essentials-0.1 lib/chef_fs/file_system/cookbook_subdir.rb