turbot 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +36 -0
- data/bin/turbot +17 -0
- data/data/cacert.pem +3988 -0
- data/lib/turbot/auth.rb +315 -0
- data/lib/turbot/cli.rb +38 -0
- data/lib/turbot/client/cisaurus.rb +25 -0
- data/lib/turbot/client/pgbackups.rb +113 -0
- data/lib/turbot/client/rendezvous.rb +111 -0
- data/lib/turbot/client/ssl_endpoint.rb +25 -0
- data/lib/turbot/client/turbot_postgresql.rb +148 -0
- data/lib/turbot/client.rb +757 -0
- data/lib/turbot/command/auth.rb +85 -0
- data/lib/turbot/command/base.rb +192 -0
- data/lib/turbot/command/bots.rb +326 -0
- data/lib/turbot/command/config.rb +123 -0
- data/lib/turbot/command/help.rb +179 -0
- data/lib/turbot/command/keys.rb +115 -0
- data/lib/turbot/command/logs.rb +34 -0
- data/lib/turbot/command/ssl.rb +43 -0
- data/lib/turbot/command/status.rb +51 -0
- data/lib/turbot/command/update.rb +47 -0
- data/lib/turbot/command/version.rb +23 -0
- data/lib/turbot/command.rb +304 -0
- data/lib/turbot/deprecated/help.rb +38 -0
- data/lib/turbot/deprecated.rb +5 -0
- data/lib/turbot/distribution.rb +9 -0
- data/lib/turbot/errors.rb +28 -0
- data/lib/turbot/excon.rb +11 -0
- data/lib/turbot/helpers/log_displayer.rb +70 -0
- data/lib/turbot/helpers/pg_dump_restore.rb +115 -0
- data/lib/turbot/helpers/turbot_postgresql.rb +213 -0
- data/lib/turbot/helpers.rb +521 -0
- data/lib/turbot/plugin.rb +165 -0
- data/lib/turbot/updater.rb +171 -0
- data/lib/turbot/version.rb +3 -0
- data/lib/turbot.rb +19 -0
- data/lib/vendor/turbot/okjson.rb +598 -0
- data/spec/helper/legacy_help.rb +16 -0
- data/spec/helper/pg_dump_restore_spec.rb +67 -0
- data/spec/schemas/dummy_schema.json +12 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +220 -0
- data/spec/support/display_message_matcher.rb +49 -0
- data/spec/support/dummy_api.rb +120 -0
- data/spec/support/openssl_mock_helper.rb +8 -0
- data/spec/support/organizations_mock_helper.rb +11 -0
- data/spec/turbot/auth_spec.rb +214 -0
- data/spec/turbot/client/pgbackups_spec.rb +43 -0
- data/spec/turbot/client/rendezvous_spec.rb +62 -0
- data/spec/turbot/client/ssl_endpoint_spec.rb +48 -0
- data/spec/turbot/client/turbot_postgresql_spec.rb +71 -0
- data/spec/turbot/client_spec.rb +548 -0
- data/spec/turbot/command/auth_spec.rb +38 -0
- data/spec/turbot/command/base_spec.rb +66 -0
- data/spec/turbot/command/bots_spec.rb +54 -0
- data/spec/turbot/command/config_spec.rb +143 -0
- data/spec/turbot/command/help_spec.rb +90 -0
- data/spec/turbot/command/keys_spec.rb +117 -0
- data/spec/turbot/command/logs_spec.rb +60 -0
- data/spec/turbot/command/status_spec.rb +48 -0
- data/spec/turbot/command/version_spec.rb +16 -0
- data/spec/turbot/command_spec.rb +131 -0
- data/spec/turbot/helpers/turbot_postgresql_spec.rb +181 -0
- data/spec/turbot/helpers_spec.rb +48 -0
- data/spec/turbot/plugin_spec.rb +172 -0
- data/spec/turbot/updater_spec.rb +44 -0
- data/templates/manifest.json +7 -0
- data/templates/scraper.py +5 -0
- data/templates/scraper.rb +6 -0
- 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)
|