def run!
      title(label)

      inside do
        Strainer.ui.debug "Running '#{command}'"
        speak(command)
        defined?(PTY) ? run_as_pty(command) : run_as_system(command)

        unless $?.success?
          Strainer.ui.error label_with_padding + Strainer.ui.set_color('Terminated with a non-zero exit status. Strainer assumes this is a failure.', :red)
          Strainer.ui.error label_with_padding + Strainer.ui.set_color('FAILURE!', :red)
          false
        else
          Strainer.ui.success label_with_padding + Strainer.ui.set_color('SUCCESS!', :green)
          true
        end
      end
    end
def run!
      title(label)

      inside do
        Strainer.ui.debug "Running '#{command}'"
        speak(command)
        defined?(PTY) ? run_as_pty(command) : run_as_system(command)

        unless $?.success?
          Strainer.ui.error label_with_padding + Strainer.ui.set_color('Terminated with a non-zero exit status. Strainer assumes this is a failure.', :red)
          Strainer.ui.error label_with_padding + Strainer.ui.set_color('FAILURE!', :red)
          false
        else
          Strainer.ui.success label_with_padding + Strainer.ui.set_color('SUCCESS!', :green)
          true
        end
      end
    end
Parse a command out of the given string (line)

 @param [String] line
   the line to parse
   example: foodcritic -f any phantomjs
 Run the given command against the cookbook

 @return [Boolean]
   `true` if the command exited successfully, `false` otherwise