 	
 # ---
 
-exports.shellspec = (opt, manifest, provider, node_names, callback) ->
-	###
-	This action output the shell spec of a node using the selected provider.
-	###
-	process_node = (node_name, callback) ->
-		provider.shell_spec node_name, (err, spec) ->
-			return callback err if err
-			
-			logsmith.info node_name, '->', spec
-			
-			return callback null, spec
-			
-	async.eachSeries node_names, process_node, callback
-	
-# ---
-
 exports.shell =  (opt, manifest, provider, node_names, callback) ->
 	###
 	This action start a shell or executes a command on nodes.
 	###
 	actions = []
 	
+	#
+	# Obtain shell spec.
+	#
 	actions.push (node_name, callback) ->
 		provider.shell_spec node_name, (err, spec) ->
 			return callback err if err
 			return callback new Error "unsupported shell spec #{spec}" if not spec.match /^ssh:/i
 			return callback null, spec
 			
+	#
+	# Start shell or execute a command.
+	#
 	actions.push (spec, callback) ->
 		ssh = new shell.Ssh spec, manifest
 		command = opt.argv.slice opt.argv.indexOf('--') + 1

	###
	actions = []
	
	actions.push (node_name, callback) ->
		exports.halt opt, manifest, provider, [node_name], (err) ->
			return callback err if err
			return callback null, node_name
			
	actions.push (node_name, callback) ->
		exports.boot opt, manifest, provider, [node_name], (err) ->
			return callback err if err
			return callback null, node_name
			
	process_node = (node_name, callback) ->
		logsmith.verbose "restart node #{node_name}"
		

	###
	actions = []
	
	#
	# Invoke action down.
	#
	actions.push (node_name, callback) ->
		exports.down opt, manifest, provider, [node_name], (err) ->
			return callback err if err
			return callback null, node_name
			
	#
	# Invoke action up.
	#
	actions.push (node_name, callback) ->
		exports.up opt, manifest, provider, [node_name], (err) ->
			return callback err if err
			return callback null, node_name
			
	#
	# Invoke actions for each node.
	#
	process_node = (node_name, callback) ->
		logsmith.verbose "reload node #{node_name}"
		
