Class: Pot::Installers::Npm

Inherits:
Pot::Installer show all
Defined in:
lib/pot/installers/npm.rb

Instance Attribute Summary collapse

Attributes inherited from Pot::Installer

#actor, #options, #package, #post, #pre

Instance Method Summary collapse

Methods inherited from Pot::Installer

#archives, #builds, #commands, #prefix, #process

Constructor Details

#initialize(parent, package_name, &block) ⇒ Npm

Returns a new instance of Npm.



7
8
9
10
# File 'lib/pot/installers/npm.rb', line 7

def initialize(parent, package_name, &block)
	super parent, &block
	@package_name = package_name
end

Instance Attribute Details

#package_nameObject

Returns the value of attribute package_name.



5
6
7
# File 'lib/pot/installers/npm.rb', line 5

def package_name
  @package_name
end