td 0.10.45 → 0.10.46

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ == 2012-09-13 version 0.10.46
3
+
4
+ * Added plan:status subcommand
5
+ * Name length limit is changed from 32 characters to 256 characters
6
+
7
+
2
8
  == 2012-09-12 version 0.10.45
3
9
 
4
10
  * bulk_import:prepare_parts supports --true and --false type conversion options
@@ -214,6 +214,8 @@ module List
214
214
  }
215
215
  end
216
216
 
217
+ add_list 'plan:status', %w[], 'Show status of the account', 'plan:status', 'plan'
218
+
217
219
  add_list 'db:list', %w[], 'Show list of tables in a database', 'db:list', 'dbs'
218
220
  add_list 'db:show', %w[db], 'Describe information of a database', 'db example_db'
219
221
  add_list 'db:create', %w[db], 'Create a database', 'db:create example_db'
@@ -314,6 +316,8 @@ module List
314
316
  add_list 'help', %w[command], 'Show usage of a command'
315
317
 
316
318
  # aliases
319
+ add_alias 'plan', 'plan:status'
320
+
317
321
  add_alias 'db', 'db:show'
318
322
  add_alias 'dbs', 'db:list'
319
323
 
@@ -0,0 +1,16 @@
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
data/lib/td/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module TreasureData
2
2
 
3
- VERSION = '0.10.45'
3
+ VERSION = '0.10.46'
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.45
4
+ version: 0.10.46
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-12 00:00:00.000000000 Z
12
+ date: 2012-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: 0.8.25
69
+ version: 0.8.26
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 0.8.25
77
+ version: 0.8.26
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: td-logger
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -149,6 +149,7 @@ 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
152
153
  - lib/td/command/query.rb
153
154
  - lib/td/command/result.rb
154
155
  - lib/td/command/role.rb