Skip to content

Commit

Permalink
Merge pull request #1 from welbornprod/master
Browse files Browse the repository at this point in the history
Adding Kubuntu support...
  • Loading branch information
mixu committed Apr 24, 2014
2 parents aef85a9 + 0b1d348 commit 22221d1
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
52 changes: 52 additions & 0 deletions art/kubuntu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
var colors = require('./colors.js');

var blueN = colors['blueN'],
blueB = colors['blueB'],
cyanB = colors['cyanB'],
clear = colors['clear'];

module.exports = function(result) {
var counter = 0;

return [
'%s .oyhhs: %s',
'%s ..--.., %sshhhhhh- %s',
'%s -+++++++++`:%syyhhyo` %s',
'%s .-- %s-++++++++/-.-%s::-` %s',
'%s .::::- %s:-----:/+++/++/. %s',
'%s -:::::-. %s.:++++++: %s',
'%s ,,, %s.:::::-` %s.++++++- %s',
'%s./+++/-%s`-::- %s./////: %s',
'%s+++++++ %s.::- %s',
'%s./+++/-`%s-::- %s:yyyyyo %s',
'%s ``` `%s-::::-` %s:yhhhhh: %s',
'%s -:::::-. %s`-ohhhhhh+ %s',
'%s .::::-` %s-o+///+oyhhyyyhy: %s',
'%s `.-- %s/yhhhhhhhy+%s,.... %s',
'%s /hhhhhhhhh%s-.-:::; %s',
'%s `.:://::- %s-:::::; %s',
"%s `.-:-' %s",
'%s %s'
].join('\n').replace(/%s/g, function(match) {
return [
blueN, result[0], blueB, blueN, result[1],
blueB, blueN, result[2],
cyanB, blueB, blueN, result[3],
cyanB, blueB, result[4],
cyanB, blueB, result[5],
blueB, cyanB, blueB, result[6],
blueB, cyanB, blueB, result[7],
blueB, cyanB, result[8],
blueB, cyanB, blueN, result[9],
blueB, cyanB, blueN, result[10],
cyanB, blueN, result[11],
cyanB, blueN, result[12],
cyanB, blueN, cyanB, result[13],
blueN, cyanB, result[14],
blueN, cyanB, result[15],
cyanB, result[16],
cyanB, result[17],
clear
][counter++];
});
};
2 changes: 2 additions & 0 deletions bin/archeyjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function out(distro, item) {
}
var cols = {
'Ubuntu': colors.redB,
'Kubuntu': colors.blueB,
'Arch': colors.blueB,
'Debian': colors.redB,
'Fedora': colors.blueB,
Expand All @@ -53,6 +54,7 @@ function res(result, distro) {

var distroArt = {
'Ubuntu': '../art/ubuntu.js',
'Kubuntu': '../art/kubuntu.js',
'Debian': '../art/debian.js',
'LinuxMint': '../art/linuxmint.js',
'CrunchBang': '../art/crunchbang.js',
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var tasks = [
switch(distro) {
case 'Debian':
case 'Ubuntu':
case 'Kubuntu':
case 'Fedora':
case 'CrunchBang':
exec('lsb_release -r', function(err, stdout, stderr) {
Expand Down Expand Up @@ -120,6 +121,7 @@ var tasks = [
switch(distro) {
case 'Debian':
case 'Ubuntu':
case 'Kubuntu':
case 'LinuxMint':
case 'CrunchBang':
exec('dpkg --get-selections | grep -v deinstall | wc -l', function(err, stdout, stderr) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "archey",
"version": "0.0.3",
"version": "0.0.4",
"description": "Archey.js is a system information tool written in JS (based on Archey) ",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 22221d1

Please sign in to comment.