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 +4 -4
- data/CHANGELOG.md +3 -0
- data/bin/jack +8 -1
- data/lib/jack/cli.rb +0 -1
- data/lib/jack/deploy.rb +4 -3
- data/lib/jack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 308bf22aa5cec82466834fe6c043a894553bd139
|
4
|
+
data.tar.gz: c0925b0a49597d7eb880f826f318d1a5be9e682d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d8faa02284e9066d0fc0073a88deb8e4451f3264e515d9ea76a6882f2f44baba8be4026e861dd7c00fc16103b7dae34f66d821bef2e61eefd5d29691410989
|
7
|
+
data.tar.gz: 3704c8303f3403b96e4d2e2cf2573a5b72707cd2f8241b0cd4050d143030e4025e18e2d5fa66948451f500c07801ca3a200d303cff81f180a49f96cd19590445
|
data/CHANGELOG.md
CHANGED
@@ -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)
|
data/lib/jack/cli.rb
CHANGED
@@ -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
|
data/lib/jack/deploy.rb
CHANGED
@@ -25,7 +25,7 @@ module Jack
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def deploy
|
28
|
-
#
|
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} #{
|
56
|
-
|
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
|
data/lib/jack/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|