sant0sk1-dreamy 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -88,17 +88,18 @@ Run this from the command line to print the usage:
88
88
  === Commands
89
89
  help # show this usage
90
90
 
91
- domains # list domains
91
+ domains # list domains: details
92
92
  domains:status # check availability of all domains (pingability)
93
93
 
94
- dns # list your DNS records
95
- dns <name> # list DNS records for <ame>
94
+ dns # list DNS records
95
+ dns <name> # list DNS records for <name>
96
96
 
97
97
  announce:list <list> # lists all subscribers to <name> list (eg - 'my_list@example.com')
98
- announce:add <list> <email> # add a subscriber with <email> to <list>
98
+ announce:add <list> <email> # add subscriber with <email> to <list>
99
99
  announce:remove <list> <email> # remove subscriber with <email> from <list>
100
100
 
101
- users # list user accounts
101
+ users # list user accounts: details
102
+ users:pw # list user accounts: usernames & passwords
102
103
 
103
104
 
104
105
  That's it for now. New commands should be springing up as Dreamy and the DreamHost API mature!
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 0
4
4
  :minor: 2
@@ -10,17 +10,18 @@ module Dreamy::Command
10
10
  === Commands
11
11
  help # show this usage
12
12
 
13
- domains # list domains
13
+ domains # list domains: details
14
14
  domains:status # check availability of all domains (pingability)
15
15
 
16
- dns # list your DNS records
17
- dns <name> # list DNS records for <ame>
16
+ dns # list DNS records
17
+ dns <name> # list DNS records for <name>
18
18
 
19
19
  announce:list <list> # lists all subscribers to <name> list (eg - 'my_list@example.com')
20
- announce:add <list> <email> # add a subscriber with <email> to <list>
20
+ announce:add <list> <email> # add subscriber with <email> to <list>
21
21
  announce:remove <list> <email> # remove subscriber with <email> from <list>
22
22
 
23
- users # list user accounts
23
+ users # list user accounts: details
24
+ users:pw # list user accounts: usernames & passwords
24
25
 
25
26
  EOTXT
26
27
  end
@@ -14,5 +14,19 @@ module Dreamy::Command
14
14
  end
15
15
  end
16
16
 
17
+ def pw
18
+ users = @account.users(passwords=true)
19
+ if users.empty?
20
+ display "No users on this account"
21
+ else
22
+ user_table = table do |t|
23
+ t.headings = 'UserName', 'Password'
24
+ users.each { |u| t << [u.username, u.password] }
25
+ end
26
+ display user_table
27
+
28
+ end
29
+ end
30
+
17
31
  end
18
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sant0sk1-dreamy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerod Santo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-18 00:00:00 -07:00
12
+ date: 2009-04-19 00:00:00 -07:00
13
13
  default_executable: dh
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency