pi 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +367 -404
- data/lib/cli.rb +1 -0
- data/lib/cli/choose_helper.rb +123 -25
- data/lib/cli/commands/apps.rb +241 -303
- data/lib/cli/commands/dns.rb +38 -73
- data/lib/cli/commands/projects.rb +179 -160
- data/lib/cli/commands/services.rb +55 -80
- data/lib/cli/commands/user.rb +26 -10
- data/lib/cli/interact_helper.rb +538 -0
- data/lib/cli/runner.rb +77 -53
- data/lib/cli/usage.rb +55 -39
- data/lib/cli/version.rb +1 -1
- data/lib/pi/client.rb +92 -77
- data/lib/pi/const.rb +2 -0
- metadata +5 -5
- data/lib/cli/commands/admin.rb +0 -19
data/lib/pi/const.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 43
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 24
|
10
|
+
version: 0.1.24
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Samsung
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-08-04 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: json_pure
|
@@ -171,9 +171,9 @@ files:
|
|
171
171
|
- lib/cli/commands/services.rb
|
172
172
|
- lib/cli/commands/dns.rb
|
173
173
|
- lib/cli/commands/apps.rb
|
174
|
-
- lib/cli/commands/admin.rb
|
175
174
|
- lib/cli/commands/user.rb
|
176
175
|
- lib/cli/commands/projects.rb
|
176
|
+
- lib/cli/interact_helper.rb
|
177
177
|
- lib/cli/runner.rb
|
178
178
|
- lib/cli/usage.rb
|
179
179
|
- lib/cli/choose_helper.rb
|
data/lib/cli/commands/admin.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
module PI::Cli::Command
|
2
|
-
class Admin < Base
|
3
|
-
def users
|
4
|
-
admin_domains = client.admin_domains
|
5
|
-
return display JSON.pretty_generate(admin_domains) if @options[:json]
|
6
|
-
return display "No domains!" if admin_domains.nil? || admin_domains.empty?
|
7
|
-
admin_domains.sort! {|a, b| a[:name] <=> b[:name] }
|
8
|
-
admin_domains_table = table do |t|
|
9
|
-
t.headings = 'Name', 'ID'
|
10
|
-
admin_domains.each do |s|
|
11
|
-
t << [s[:name], s[:id]]
|
12
|
-
end
|
13
|
-
end
|
14
|
-
display admin_domains_table
|
15
|
-
end
|
16
|
-
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|