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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3246be55cb8f9231ddd19bf987c612fce997ce0b
4
- data.tar.gz: 1343718d17c4b9eb5e908fc2a3c90632b0a59fdf
3
+ metadata.gz: 5f03e8528c2bcc98aac27197daaa6da4bc49bc8c
4
+ data.tar.gz: 16562106b2d305a6a20e2b6a164aa19c0b08fa4b
5
5
  SHA512:
6
- metadata.gz: 2a93f72aa6097489d202b9abe53162e6852b49c9732617e840a3d1b38ac28ffaab62649d925660a71125a0bd92d32eb59d1cf06698decca912bdab616e544360
7
- data.tar.gz: 380df481a2619ede3be632224f39d96dfc138dd5f776c3a35b12e72f2f5fd8f6891bb7bd4975ba7797e5c24c22905e71f5a492584110b3402d6b1cba77c93481
6
+ metadata.gz: 7fb6645943bb8f1143766798c7d45a4919e8b5ca822937612c26d670a048ba0d57fe34990562c2be03c743531e3a938c2e9ceef88d814b48b27a7e937abdfc5a
7
+ data.tar.gz: 82524afeb1bc4285b70304f14499df71c8a879937ba0913324c07acc5e33b47261b353e3aa9519294b5da5273a6ca35d66d8c19d1626a11e59076e2fe9fc41cc
data/Rakefile CHANGED
@@ -1 +1 @@
1
- require "bundler/gem_tasks"
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 "version", "Show version", Turbo::Cli::VersionCommand
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 "The server uses a certificate signed by an unknown authority.".colorize(:red)
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)
@@ -1,4 +1,4 @@
1
- require "turbo/cli/version"
1
+ require 'turbo/cli/version'
2
2
 
3
3
  module Turbo
4
4
  module Cli
@@ -0,0 +1,9 @@
1
+ # require 'bundler/setup'
2
+ require 'irb'
3
+
4
+ class Turbo::Cli::ConsoleCommand < Clamp::Command
5
+
6
+ def execute
7
+ IRB.start
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  module Turbo
2
2
  module Cli
3
- VERSION = "1.0.1"
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
@@ -5,4 +5,4 @@ class Turbo::Cli::VersionCommand < Clamp::Command
5
5
  def execute
6
6
  puts Turbo::Cli::VERSION
7
7
  end
8
- end
8
+ end
@@ -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 = "turbo-cli"
7
+ spec.name = 'turbo-cli'
8
8
  spec.version = Turbo::Cli::VERSION
9
- spec.authors = ["Dave Jackson"]
10
- spec.email = ["dave.jackson@stealthstartuplabs.com"]
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 = "http://www.agileappstudio.com"
15
- spec.license = "MIT"
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 = "bin"
18
+ spec.bindir = 'bin'
19
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
- spec.require_paths = ["lib"]
20
+ spec.require_paths = ['lib']
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.10"
23
- spec.add_development_dependency "rake", "~> 10.0"
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.1
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
@@ -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
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here