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/lib/pi/const.rb CHANGED
@@ -10,8 +10,10 @@ module PI
10
10
  INFO_PATH = '/info'
11
11
  TOKEN_PATH = '/token'
12
12
  PROJECT_PATH = '/project'
13
+ PROJECTS_PATH = '/projects'
13
14
  USER_PATH = '/user'
14
15
  APP_PATH = '/app'
16
+ APPS_PATH = '/apps'
15
17
  ADMIN_PATH = '/admin'
16
18
 
17
19
  end
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: 53
4
+ hash: 43
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 23
10
- version: 0.1.23
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-07-20 00:00:00 Z
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
@@ -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