Add helper to get apm path

This commit is contained in:
Kevin Sawicki
2013-10-22 15:52:04 -07:00
parent fa36ab1a5c
commit 43dae4e9eb
2 changed files with 4 additions and 1 deletions

View File

@@ -36,6 +36,10 @@ class PackageManager
@packageActivators = []
@registerPackageActivator(this, ['atom', 'textmate'])
# Public: Get the path to the apm command
getApmPath: ->
@apmPath ?= require.resolve('atom-package-manager/bin/apm')
getPackageState: (name) ->
@packageStates[name]