td 0.10.46 → 0.10.47

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
- == 2012-09-13 version 0.10.46
2
+ == 2012-09-13 version 0.10.47
3
3
 
4
- * Added plan:status subcommand
4
+ * Added account:usage subcommand
5
5
  * Name length limit is changed from 32 characters to 256 characters
6
6
 
7
7
 
@@ -88,6 +88,16 @@ module Command
88
88
  $stderr.puts "Use '#{$prog} db:create <db_name>' to create a database."
89
89
  end
90
90
 
91
+ def account_usage(op)
92
+ op.cmd_parse
93
+
94
+ client = get_client
95
+
96
+ a = client.account
97
+
98
+ $stderr.puts "Storage: #{a.storage_size_string}"
99
+ end
100
+
91
101
  end
92
102
  end
93
103
 
@@ -214,8 +214,6 @@ module List
214
214
  }
215
215
  end
216
216
 
217
- add_list 'plan:status', %w[], 'Show status of the account', 'plan:status', 'plan'
218
-
219
217
  add_list 'db:list', %w[], 'Show list of tables in a database', 'db:list', 'dbs'
220
218
  add_list 'db:show', %w[db], 'Describe information of a database', 'db example_db'
221
219
  add_list 'db:create', %w[db], 'Create a database', 'db:create example_db'
@@ -271,6 +269,7 @@ module List
271
269
  add_list 'job:kill', %w[job_id], 'Kill or cancel a job', 'job:kill 1461'
272
270
 
273
271
  add_list 'account', %w[user_name?], 'Setup a Treasure Data account'
272
+ add_list 'account:usage', %w[user_name?], 'Show resource usage information'
274
273
  add_list 'password:change', %w[], 'Change password'
275
274
  add_list 'apikey:show', %w[], 'Show Treasure Data API key'
276
275
  add_list 'apikey:set', %w[apikey], 'Set Treasure Data API key'
@@ -316,8 +315,6 @@ module List
316
315
  add_list 'help', %w[command], 'Show usage of a command'
317
316
 
318
317
  # aliases
319
- add_alias 'plan', 'plan:status'
320
-
321
318
  add_alias 'db', 'db:show'
322
319
  add_alias 'dbs', 'db:list'
323
320
 
data/lib/td/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module TreasureData
2
2
 
3
- VERSION = '0.10.46'
3
+ VERSION = '0.10.47'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: td
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.46
4
+ version: 0.10.47
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -149,7 +149,6 @@ files:
149
149
  - lib/td/command/list.rb
150
150
  - lib/td/command/org.rb
151
151
  - lib/td/command/password.rb
152
- - lib/td/command/plan.rb
153
152
  - lib/td/command/query.rb
154
153
  - lib/td/command/result.rb
155
154
  - lib/td/command/role.rb
@@ -1,16 +0,0 @@
1
-
2
- module TreasureData
3
- module Command
4
-
5
- def plan_status(op)
6
- db_name, table_name = op.cmd_parse
7
-
8
- client = get_client
9
-
10
- a = client.account
11
-
12
- $stderr.puts "Storage: #{a.storage_size_string}"
13
- end
14
-
15
- end
16
- end