lib/lxc.rb in lxc-0.2.9 vs lib/lxc.rb in lxc-0.2.10
- old
+ new
@@ -44,14 +44,9 @@
# RegEx pattern for extracting the LXC Version from the "lxc-version" command
# output.
REGEX_VERSION = /^lxc version:\s+([\w\W]+)$/
- # SED command for removing ANSI colors
- #
- # @see http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed CommandLineFu - Remove Color Codes (Special Characters) with SED
- SED_REMOVE_ANSI = %q(sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g")
-
# @param [Hash] options Options hash.
# @option options [Boolean] :use_sudo (false) Whether or not to prefix all
# commands with 'sudo'.
# @option options [Net::SSH,ZTK::SSH,nil] :use_ssh (nil) Whether or not to
# execute all commands remotely via an SSH connection.