class Aid::Scripts::Doctor::CommandRemedy

Public Class Methods

new(shell_command) click to toggle source
Calls superclass method Aid::Scripts::Doctor::Remedy::new
# File lib/aid/scripts/doctor.rb, line 90
def initialize(shell_command)
  super
end

Public Instance Methods

auto_fix!() click to toggle source
# File lib/aid/scripts/doctor.rb, line 98
def auto_fix!
  puts "==> running #{colorize(:command, "$ #{shell_command}")}"
  system(shell_command)
end
auto_fixable?() click to toggle source
# File lib/aid/scripts/doctor.rb, line 94
def auto_fixable?
  true
end
to_s() click to toggle source
# File lib/aid/scripts/doctor.rb, line 103
def to_s
  "run #{colorize :command, shell_command}"
end