turbot 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +15 -0
  2. data/README.md +36 -0
  3. data/bin/turbot +17 -0
  4. data/data/cacert.pem +3988 -0
  5. data/lib/turbot/auth.rb +315 -0
  6. data/lib/turbot/cli.rb +38 -0
  7. data/lib/turbot/client/cisaurus.rb +25 -0
  8. data/lib/turbot/client/pgbackups.rb +113 -0
  9. data/lib/turbot/client/rendezvous.rb +111 -0
  10. data/lib/turbot/client/ssl_endpoint.rb +25 -0
  11. data/lib/turbot/client/turbot_postgresql.rb +148 -0
  12. data/lib/turbot/client.rb +757 -0
  13. data/lib/turbot/command/auth.rb +85 -0
  14. data/lib/turbot/command/base.rb +192 -0
  15. data/lib/turbot/command/bots.rb +326 -0
  16. data/lib/turbot/command/config.rb +123 -0
  17. data/lib/turbot/command/help.rb +179 -0
  18. data/lib/turbot/command/keys.rb +115 -0
  19. data/lib/turbot/command/logs.rb +34 -0
  20. data/lib/turbot/command/ssl.rb +43 -0
  21. data/lib/turbot/command/status.rb +51 -0
  22. data/lib/turbot/command/update.rb +47 -0
  23. data/lib/turbot/command/version.rb +23 -0
  24. data/lib/turbot/command.rb +304 -0
  25. data/lib/turbot/deprecated/help.rb +38 -0
  26. data/lib/turbot/deprecated.rb +5 -0
  27. data/lib/turbot/distribution.rb +9 -0
  28. data/lib/turbot/errors.rb +28 -0
  29. data/lib/turbot/excon.rb +11 -0
  30. data/lib/turbot/helpers/log_displayer.rb +70 -0
  31. data/lib/turbot/helpers/pg_dump_restore.rb +115 -0
  32. data/lib/turbot/helpers/turbot_postgresql.rb +213 -0
  33. data/lib/turbot/helpers.rb +521 -0
  34. data/lib/turbot/plugin.rb +165 -0
  35. data/lib/turbot/updater.rb +171 -0
  36. data/lib/turbot/version.rb +3 -0
  37. data/lib/turbot.rb +19 -0
  38. data/lib/vendor/turbot/okjson.rb +598 -0
  39. data/spec/helper/legacy_help.rb +16 -0
  40. data/spec/helper/pg_dump_restore_spec.rb +67 -0
  41. data/spec/schemas/dummy_schema.json +12 -0
  42. data/spec/spec.opts +1 -0
  43. data/spec/spec_helper.rb +220 -0
  44. data/spec/support/display_message_matcher.rb +49 -0
  45. data/spec/support/dummy_api.rb +120 -0
  46. data/spec/support/openssl_mock_helper.rb +8 -0
  47. data/spec/support/organizations_mock_helper.rb +11 -0
  48. data/spec/turbot/auth_spec.rb +214 -0
  49. data/spec/turbot/client/pgbackups_spec.rb +43 -0
  50. data/spec/turbot/client/rendezvous_spec.rb +62 -0
  51. data/spec/turbot/client/ssl_endpoint_spec.rb +48 -0
  52. data/spec/turbot/client/turbot_postgresql_spec.rb +71 -0
  53. data/spec/turbot/client_spec.rb +548 -0
  54. data/spec/turbot/command/auth_spec.rb +38 -0
  55. data/spec/turbot/command/base_spec.rb +66 -0
  56. data/spec/turbot/command/bots_spec.rb +54 -0
  57. data/spec/turbot/command/config_spec.rb +143 -0
  58. data/spec/turbot/command/help_spec.rb +90 -0
  59. data/spec/turbot/command/keys_spec.rb +117 -0
  60. data/spec/turbot/command/logs_spec.rb +60 -0
  61. data/spec/turbot/command/status_spec.rb +48 -0
  62. data/spec/turbot/command/version_spec.rb +16 -0
  63. data/spec/turbot/command_spec.rb +131 -0
  64. data/spec/turbot/helpers/turbot_postgresql_spec.rb +181 -0
  65. data/spec/turbot/helpers_spec.rb +48 -0
  66. data/spec/turbot/plugin_spec.rb +172 -0
  67. data/spec/turbot/updater_spec.rb +44 -0
  68. data/templates/manifest.json +7 -0
  69. data/templates/scraper.py +5 -0
  70. data/templates/scraper.rb +6 -0
  71. metadata +199 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTRjNjM4ODc0ODAxZjM3OTJkNTE2MTBmMzBmZTk2NTMyNTBjZDViOA==
5
+ data.tar.gz: !binary |-
6
+ YjEyZWVjYTZiZTdiYjNjNWY1ZDYxODIzYzM0NWMzYTAzZjc1NzYyZQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YjNiY2NiOTEzYzcwYjJmMmE5YTY2ODZmMmIyZTE2ODgxMTZlMTczYjA5YTkw
10
+ MzkzMjRjNzAxZDUyMDlhNTZkNDAwODRjZWQ1NjBmMDhiMDdjYzVhYWY2YzFi
11
+ YzJjZWEwNTE3YWRlOTJiM2ZlYjk2YjkxOWMwOTdiZDM1ZWI4NjI=
12
+ data.tar.gz: !binary |-
13
+ Y2VkNGM2MGIyNjcyYzA4NzY1YjJlMjBhNDY4NjgxNzI2N2M1ZTgxMGFhMjA1
14
+ NWYzZWExM2M5YTJhNWQyZDQ1ZDAyNjdmNWNkZWI1ZTYyNDBiZGNiODU0OWVk
15
+ Mzg3MTliYWM3OThjOTRlMWRjYzllYjYwNzQ3MTdhNmQ4NmM2ODA=
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ Turbot CLI
2
+ ==========
3
+
4
+ The Turbot CLI is used to manage Turbot apps from the command line.
5
+
6
+ Setup
7
+ -----
8
+
9
+ (Platform-specific installers to follow)
10
+
11
+ Once installed, you'll have access to the `turbot` command from your command shell. Log in using the email address and password you used when creating your Turbot account:
12
+
13
+ $ turbot login
14
+ Enter your Turbot credentials.
15
+ Email: adam@example.com
16
+ Password:
17
+ Could not find an existing public key.
18
+ Would you like to generate one? [Yn]
19
+ Generating new SSH public key.
20
+ Uploading SSH public key /Users/adam/.ssh/id_rsa.pub
21
+
22
+ Press enter at the prompt to upload your existing `SSH` key or create a new one, used for pushing code later on.
23
+
24
+ Development
25
+ -----------
26
+
27
+ If you're working on the CLI and you can smoke-test your changes:
28
+
29
+ $ bundle exec turbot
30
+
31
+ Meta
32
+ ----
33
+
34
+ Released under the MIT license; see the file License.
35
+
36
+ Based on the Heroku client created by [Adam Wiggins and others](https://github.com/turbot/turbot/contributors)
data/bin/turbot ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+
4
+ # resolve bin path, ignoring symlinks
5
+ require "pathname"
6
+ bin_file = Pathname.new(__FILE__).realpath
7
+
8
+ # add self to libpath
9
+ $:.unshift File.expand_path("../../lib", bin_file)
10
+
11
+ require "turbot/updater"
12
+ Turbot::Updater.disable("`turbot update` is only available from Turbot Toolbelt.\nDownload and install from https://toolbelt.turbot.com")
13
+
14
+ # start up the CLI
15
+ require "turbot/cli"
16
+ Turbot.user_agent = "turbot-gem/#{Turbot::VERSION} (#{RUBY_PLATFORM}) ruby/#{RUBY_VERSION}"
17
+ Turbot::CLI.start(*ARGV)