Class: Resource::Go Private

Inherits:
Resource
  • Object
show all
Defined in:
resource.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

A resource containing a Go package.

Instance Method Summary collapse

Instance Method Details

#stage(target, &block) ⇒ Object

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



364
365
366
367
368
369
# File 'resource.rb', line 364

def stage(target, &block)
  resource_name = name
  raise "Resource name is nil" if resource_name.nil?

  super(target/resource_name, &block)
end