cartodb-tools 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cartodb-tools/cli.rb +12 -11
- data/lib/cartodb-tools/version.rb +1 -1
- metadata +1 -1
data/lib/cartodb-tools/cli.rb
CHANGED
@@ -35,17 +35,18 @@ module CartodbTools
|
|
35
35
|
|
36
36
|
CartoDB::Init.start CartodbTools::Config.config
|
37
37
|
|
38
|
-
CartoDB::Connection.table
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
38
|
+
table = CartoDB::Connection.table options[:table_name]
|
39
|
+
|
40
|
+
lines = []
|
41
|
+
lines << "-------------------------"
|
42
|
+
lines << "id : #{table[:id]}"
|
43
|
+
lines << "name : #{table[:name]}"
|
44
|
+
lines << "privacy : #{table[:privacy]}"
|
45
|
+
lines << "tags : #{table[:tags]}"
|
46
|
+
lines << "-------------------------"
|
47
|
+
lines = lines.concat(table[:schema].map {|item| "#{item[0]} #{item[1]}" })
|
48
|
+
|
49
|
+
puts lines.join("\n")
|
49
50
|
end
|
50
51
|
end
|
51
52
|
end
|