olds/easy-debian-init.rb
def exec_command(command)
      output = `#{command}`.chomp
      result=$?.success?
      unless result
        puts "#{Tty.red}Command with some problem! #{Tty.reset}"
      end
      # If no problems with the command line return
      return output
    end
# Method to execute a command and return its result
# Used to get system information such as architecture and another stuffs
Method to execute a command and return its result
Used to get system information such as architecture and another stuffs
Method to execute a command and return its result Used to get system information such as architecture and another stuffs
def exec_command(command)
      output = `#{command}`.chomp
      result=$?.success?
      unless result
        puts "#{Tty.red}Command with some problem! #{Tty.reset}"
      end
      return output
    end
def exec_command ( command ) output = ` #{ command } ` . chomp result = $? . success? unless result puts "#{Tty.red}Command with some problem! #{Tty.reset}" end return output end
Method to execute a command and return its result
Used to get system information such as architecture and another stuffs
Method to execute a command and return its result Used to get system information such as architecture and another stuffs
# If no problems with the command line return
command