turbo-cli 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/bin/turbo +5 -2
- data/lib/turbo/cli.rb +1 -1
- data/lib/turbo/cli/console_command.rb +9 -0
- data/lib/turbo/cli/version.rb +1 -1
- data/lib/turbo/cli/version_command.rb +1 -1
- data/turbo-cli.gemspec +9 -9
- metadata +2 -5
- data/bin/console +0 -14
- data/bin/setup +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f03e8528c2bcc98aac27197daaa6da4bc49bc8c
|
4
|
+
data.tar.gz: 16562106b2d305a6a20e2b6a164aa19c0b08fa4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fb6645943bb8f1143766798c7d45a4919e8b5ca822937612c26d670a048ba0d57fe34990562c2be03c743531e3a938c2e9ceef88d814b48b27a7e937abdfc5a
|
7
|
+
data.tar.gz: 82524afeb1bc4285b70304f14499df71c8a879937ba0913324c07acc5e33b47261b353e3aa9519294b5da5273a6ca35d66d8c19d1626a11e59076e2fe9fc41cc
|
data/Rakefile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
data/bin/turbo
CHANGED
@@ -10,12 +10,15 @@ $:.unshift File.expand_path('../../lib', bin_file)
|
|
10
10
|
|
11
11
|
STDOUT.sync = true
|
12
12
|
|
13
|
+
require 'excon'
|
13
14
|
require 'clamp'
|
14
15
|
require 'turbo/cli/version_command'
|
16
|
+
# require 'turbo/cli/console_command'
|
15
17
|
|
16
18
|
class MainCommand < Clamp::Command
|
17
19
|
|
18
|
-
subcommand
|
20
|
+
subcommand 'version', 'Show version', Turbo::Cli::VersionCommand
|
21
|
+
# subcommand 'console', 'Use console', Turbo::Cli::ConsoleCommand
|
19
22
|
|
20
23
|
def execute
|
21
24
|
end
|
@@ -25,7 +28,7 @@ begin
|
|
25
28
|
MainCommand.run
|
26
29
|
rescue Excon::Errors::SocketError => exc
|
27
30
|
if exc.message.include?('Unable to verify certificate')
|
28
|
-
$stderr.puts
|
31
|
+
$stderr.puts 'The server uses a certificate signed by an unknown authority.'.colorize(:red)
|
29
32
|
$stderr.puts "You can trust this server by copying server CA pem file to: #{"~/.kontena/certs/<hostname>.pem".colorize(:light_black)}"
|
30
33
|
$stderr.puts "Protip: you can bypass the certificate check by setting #{'SSL_IGNORE_ERRORS=true'.colorize(:yellow)} env variable, but any data you send to the server could be intercepted by others."
|
31
34
|
exit(1)
|
data/lib/turbo/cli.rb
CHANGED
data/lib/turbo/cli/version.rb
CHANGED
data/turbo-cli.gemspec
CHANGED
@@ -4,23 +4,23 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'turbo/cli/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'turbo-cli'
|
8
8
|
spec.version = Turbo::Cli::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Dave Jackson']
|
10
|
+
spec.email = ['dave.jackson@stealthstartuplabs.com']
|
11
11
|
|
12
12
|
spec.summary = %q{Agile App Studio command line tool.}
|
13
13
|
spec.description = %q{Agile App Studio command line tool.}
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
14
|
+
spec.homepage = 'http://www.agileappstudio.com'
|
15
|
+
spec.license = 'MIT'
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
-
spec.bindir =
|
18
|
+
spec.bindir = 'bin'
|
19
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
-
spec.require_paths = [
|
20
|
+
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_development_dependency
|
23
|
-
spec.add_development_dependency
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
23
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
24
24
|
|
25
25
|
spec.add_runtime_dependency 'excon'
|
26
26
|
spec.add_runtime_dependency 'colorize'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbo-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Jackson
|
@@ -112,8 +112,6 @@ description: Agile App Studio command line tool.
|
|
112
112
|
email:
|
113
113
|
- dave.jackson@stealthstartuplabs.com
|
114
114
|
executables:
|
115
|
-
- console
|
116
|
-
- setup
|
117
115
|
- turbo
|
118
116
|
extensions: []
|
119
117
|
extra_rdoc_files: []
|
@@ -124,10 +122,9 @@ files:
|
|
124
122
|
- LICENSE.txt
|
125
123
|
- README.md
|
126
124
|
- Rakefile
|
127
|
-
- bin/console
|
128
|
-
- bin/setup
|
129
125
|
- bin/turbo
|
130
126
|
- lib/turbo/cli.rb
|
127
|
+
- lib/turbo/cli/console_command.rb
|
131
128
|
- lib/turbo/cli/version.rb
|
132
129
|
- lib/turbo/cli/version_command.rb
|
133
130
|
- turbo-cli.gemspec
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "turbo/cli"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|