Class: Hbc::Container::Directory

Inherits:
Base
  • Object
show all
Defined in:
Library/Homebrew/cask/lib/hbc/container/directory.rb

Direct Known Subclasses

SvnRepository

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#extract_nested_container, #extract_nested_inside, #initialize, #verbose?

Constructor Details

This class inherits a constructor from Hbc::Container::Base

Class Method Details

.me?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'Library/Homebrew/cask/lib/hbc/container/directory.rb', line 6

def self.me?(*)
  false
end

Instance Method Details

#extractObject



10
11
12
13
14
15
# File 'Library/Homebrew/cask/lib/hbc/container/directory.rb', line 10

def extract
  @path.children.each do |child|
    next if skip_path?(child)
    FileUtils.cp child, @cask.staged_path
  end
end