rpanel 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rpanel/cli.rb +4 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.1
|
data/lib/rpanel/cli.rb
CHANGED
@@ -4,7 +4,7 @@ require 'fileutils'
|
|
4
4
|
|
5
5
|
module Rpanel
|
6
6
|
class CLI
|
7
|
-
IGNORE_DIRECTORIES = ['.cpan', '.cpcpan', 'cpeasyapache', 'cprubybuild', 'cprubygemsbuild', 'domlogs', 'liquidweb', 'lost+found', 'fantasti', 'MySQL-install', 'virtfs']
|
7
|
+
IGNORE_DIRECTORIES = ['.', '..','.cpan', '.cpcpan', 'cpeasyapache', 'cprubybuild', 'cprubygemsbuild', 'domlogs', 'liquidweb', 'lost+found', 'fantasti', 'MySQL-install', 'virtfs']
|
8
8
|
def self.execute(stdout, arguments=[])
|
9
9
|
|
10
10
|
options = {
|
@@ -55,8 +55,9 @@ module Rpanel
|
|
55
55
|
end
|
56
56
|
|
57
57
|
if options[:list]
|
58
|
-
dirs = Dir.entries('/
|
59
|
-
|
58
|
+
dirs = Dir.entries('/Users/jerrod') - IGNORE_DIRECTORIES
|
59
|
+
accounts = dirs.sort{|a,z| a.downcase <=>z.downcase}
|
60
|
+
puts accounts
|
60
61
|
end
|
61
62
|
|
62
63
|
username = options[:username]
|