lib/lxc/shell.rb in lxc-ruby-0.2.0 vs lib/lxc/shell.rb in lxc-ruby-0.2.1
- old
+ new
@@ -41,9 +41,12 @@
'ABORTING',
'FREEZING',
'FROZEN'
]
+ # Terminal command to strip all special color symbols
+ REMOVE_COLORS = 'sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"'
+
@@use_sudo = false
# Check if LXC is using sudo to run commands
# @return [Boolean] current sudo flag value
def use_sudo
\ No newline at end of file