Add Public keyword to all exported classes

This commit is contained in:
Kevin Sawicki
2013-09-19 13:48:24 -07:00
parent 7c7dc1d585
commit ed1dcceb31
5 changed files with 8 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
BufferedProcess = require './buffered-process'
path = require 'path'
# Private: Like BufferedProcess, but accepts a node script instead of an
# Public: Like BufferedProcess, but accepts a node script instead of an
# executable, on Unix which allows running scripts and executables, this seems
# unnecessary, but on Windows we have to separate scripts from executables since
# it doesn't support shebang strings.

View File

@@ -2,7 +2,7 @@ ChildProcess = require 'child_process'
path = require 'path'
_ = require './underscore-extensions'
# Private: A wrapper which provides buffering for ChildProcess.
# Public: A wrapper which provides buffering for ChildProcess.
module.exports =
class BufferedProcess
process: null

View File

@@ -6,6 +6,7 @@ async = require 'async'
rimraf = require 'rimraf'
path = require 'path'
# Public: Useful extensions to node's built-in fs module
fsExtensions =
# Make the given path absolute by resolving it against the
# current working directory.

View File

@@ -29,7 +29,7 @@ class Project
# Private:
@deserialize: (state) -> new Project(state)
# Public:
# Public: Find the local path for the given repository URL.
@pathForRepositoryUrl: (repoUrl) ->
[repoName] = url.parse(repoUrl).path.split('/')[-1..]
repoName = repoName.replace(/\.git$/, '')

View File

@@ -1,5 +1,9 @@
_ = require './underscore-extensions'
# Public: Mixin for managing subscriptions of event listeners to different objects.
#
# Support unsubscribe from all register event listeners or just the listeners
# registered on a given object.
module.exports =
subscribeWith: (eventEmitter, methodName, args) ->
eventEmitter[methodName](args...)