def capture()

in cloud/aws/node/generate-setup-script.py [0:0]


	def capture(command, **kwargs):
		"""
		Executes the specified command and captures its output
		"""
		
		# Log the command being executed
		Utility.log(command)
		
		# Attempt to execute the specified command
		result = subprocess.run(
			command,
			check = True,
			capture_output = True,
			universal_newlines = True,
			**kwargs
		)
		
		# Return the contents of stdout
		return result.stdout.strip()