jack-eb 1.2.0 → 1.2.1

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: 0b32fb136e9666d9c320b57a6e82dbd6265a88ca
4
- data.tar.gz: c44513aa9ec470ae7345e6642a49f558c45554dc
3
+ metadata.gz: 308bf22aa5cec82466834fe6c043a894553bd139
4
+ data.tar.gz: c0925b0a49597d7eb880f826f318d1a5be9e682d
5
5
  SHA512:
6
- metadata.gz: 944f181ed9841d73ea420881a1ee995a9a0ac00a3db561591919abae4fedc163dbce4e48938071a8ab4ba2015258d141255dba12c11244a3ea6820b51d5658d7
7
- data.tar.gz: adbf44aee62358dc8e9251fdc5d6da43744254c0a3c9ac6aacd8fc62820edf58b3a5d1eda27265434a57d72b45a7a5da9ab5d5b30093e65cb7da967f1ca51424
6
+ metadata.gz: 39d8faa02284e9066d0fc0073a88deb8e4451f3264e515d9ea76a6882f2f44baba8be4026e861dd7c00fc16103b7dae34f66d821bef2e61eefd5d29691410989
7
+ data.tar.gz: 3704c8303f3403b96e4d2e2cf2573a5b72707cd2f8241b0cd4050d143030e4025e18e2d5fa66948451f500c07801ca3a200d303cff81f180a49f96cd19590445
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [1.2.1]
7
+ - fix EB_OPTIONS and early trap for friendly exit
8
+
6
9
  ## [1.2.0]
7
10
  - add jack deploy command
8
11
  - rename commands to config get and config apply
data/bin/jack CHANGED
@@ -1,9 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ # Trap ^C
4
+ Signal.trap("INT") {
5
+ puts "\nCtrl-C detected. Exiting..."
6
+ sleep 1
7
+ exit
8
+ }
9
+
3
10
  require 'rubygems'
4
11
 
5
12
  $:.unshift(File.expand_path('../../lib', __FILE__))
6
13
  require 'jack'
7
14
  require 'jack/cli'
8
15
 
9
- Jack::CLI.start(ARGV)
16
+ Jack::CLI.start(ARGV)
@@ -50,7 +50,6 @@ module Jack
50
50
 
51
51
  desc "deploy ENV_NAME", "deploy to EB environment"
52
52
  long_desc Help.deploy
53
- option :eb_options, type: :string, desc: "Passthrough options to underlying called eb command"
54
53
  def deploy(env_name)
55
54
  Deploy.new(options.merge(env_name: env_name)).run
56
55
  end
@@ -25,7 +25,7 @@ module Jack
25
25
  end
26
26
 
27
27
  def deploy
28
- # eb_options are passed through to the underlying eb deploy command
28
+ # EB_OPTIONS are passed through to the underlying eb deploy command
29
29
  #
30
30
  # optional arguments:
31
31
  # -h, --help show this help message and exit
@@ -52,8 +52,9 @@ module Jack
52
52
  # --source SOURCE source of code to deploy directly; example
53
53
  # source_location/repo/branch
54
54
  # -p, --process enable preprocessing of the application version
55
- command = "#{eb_bin} deploy#{eb_base_flags} #{@env_name} #{@options[:eb_options]}"
56
- sh(command)
55
+ command = "#{eb_bin} deploy#{eb_base_flags} #{@env_name} #{ENV['EB_OPTIONS']}"
56
+ puts "command #{command.inspect}"
57
+ # sh(command)
57
58
  end
58
59
  end
59
60
  end
@@ -1,3 +1,3 @@
1
1
  module Jack
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jack-eb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-09 00:00:00.000000000 Z
11
+ date: 2017-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor