beanstalk_deploy 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/beanstalk.rb +16 -2
- 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: f5b059c032255ad0811aee54640a4c5916a2264b
|
4
|
+
data.tar.gz: a8226a8a8d4094b7535e14b7d43bd917644aa20f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73fea920ae0d849ca444039787205448261e2ce730ff32dc4569036913f851e4a8508d025af9376f73e4a0e309d52220e4735ea928822a5655628b3f158040e9
|
7
|
+
data.tar.gz: 7caf87a89fc47e829c4f35923e07ba6e0ca62b4ddc359f46256e5ec7b9e091555a6f20ac8eaeb34b01d4f598ca1717e5e246a027d68637c113222829db0c0eea
|
data/lib/beanstalk.rb
CHANGED
@@ -3,6 +3,15 @@ require 'aws-sdk-elasticbeanstalk'
|
|
3
3
|
|
4
4
|
module Beanstalk
|
5
5
|
class Deploy < Thor
|
6
|
+
|
7
|
+
map %w[--version -v] => :__print_version
|
8
|
+
|
9
|
+
desc "--version, -v", "print the version"
|
10
|
+
def __print_version
|
11
|
+
puts '1.1.3'
|
12
|
+
end
|
13
|
+
|
14
|
+
|
6
15
|
desc 'deploy', 'Deploy applications to AWS ElasticBeanstalk using the eb-cli'
|
7
16
|
option :app_name, :required => true
|
8
17
|
option :env_name, :required => true
|
@@ -12,14 +21,19 @@ module Beanstalk
|
|
12
21
|
option :tags, :aliases => "-t", :type => :hash
|
13
22
|
|
14
23
|
def deploy
|
15
|
-
|
16
24
|
app_name = options[:app_name]
|
17
|
-
env_name = options[:env_name]
|
18
25
|
source_dir = options[:source_dir]
|
19
26
|
profile_name = options[:profile]
|
20
27
|
region = options[:region]
|
21
28
|
tags = options[:tags]
|
22
29
|
|
30
|
+
if options[:env_name].size < 40
|
31
|
+
env_name = options[:env_name]
|
32
|
+
else
|
33
|
+
puts 'Environment name too long, truncating...'
|
34
|
+
env_name = options[:env_name][0..39].gsub(/\s\w+$/,'...')
|
35
|
+
end
|
36
|
+
|
23
37
|
# Authenticates the user & sets up a new ElasticBeanstalk client
|
24
38
|
authenticate_user(profile_name, region)
|
25
39
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beanstalk_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StoneWaves
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|