beanstalk_deploy 1.1.3 → 1.1.4
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/lib/beanstalk.rb +6 -7
- 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: 32d044c30321b3894201114d975ded0ce44f8603
|
4
|
+
data.tar.gz: 43548cfccfbc9b169ab5d64d3dc073000ec82484
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3aaf2964e6725045df3fdf50392f616b2c7582452b9507f0955877382b6210837c41905cbaced017a042b6ff246c11cbff99977b8be270939bb10df1a9a5af45
|
7
|
+
data.tar.gz: 347329335f9afd7c7582150562640fb6df363695103cb706abc31995afc70627f7b62a8f51fcac8b455f9139355bcd9466ea1ceb6d457a5d33be63231a62b73a
|
data/lib/beanstalk.rb
CHANGED
@@ -8,7 +8,7 @@ module Beanstalk
|
|
8
8
|
|
9
9
|
desc "--version, -v", "print the version"
|
10
10
|
def __print_version
|
11
|
-
puts '1.1.
|
11
|
+
puts '1.1.4'
|
12
12
|
end
|
13
13
|
|
14
14
|
|
@@ -115,14 +115,14 @@ module Beanstalk
|
|
115
115
|
|
116
116
|
if (envs.environments.empty?) or (!environment_available)
|
117
117
|
puts "CreateEnvironment is starting for #{env_name}."
|
118
|
-
system ("cd #{source_dir} && eb create #{env_name} --timeout 60") or raise "Something went wrong
|
118
|
+
system ("cd #{source_dir} && eb create #{env_name} --timeout 60") or raise "Something went wrong"
|
119
119
|
# Tag the environment
|
120
120
|
unless tags.nil?
|
121
|
-
tag_environment(
|
121
|
+
tag_environment(env_name, tags)
|
122
122
|
end
|
123
123
|
else
|
124
124
|
puts "Updating #{env_name}."
|
125
|
-
system ("cd #{source_dir} && eb deploy #{env_name} --timeout 60") or raise "Something went wrong
|
125
|
+
system ("cd #{source_dir} && eb deploy #{env_name} --timeout 60") or raise "Something went wrong"
|
126
126
|
end
|
127
127
|
|
128
128
|
end
|
@@ -133,15 +133,14 @@ module Beanstalk
|
|
133
133
|
# Only called if the environment is being created.
|
134
134
|
#
|
135
135
|
# ==== Parameters
|
136
|
-
# app_name<String>:: Name of the application to be used
|
137
136
|
# env_name<String>:: Name of the environment to be used
|
138
137
|
# tags<Hash>:: Hash of tags to be added to environment
|
139
|
-
def tag_environment(
|
138
|
+
def tag_environment(env_name, tags)
|
140
139
|
|
141
140
|
puts "Tagging #{env_name}."
|
142
141
|
tags.each do |key, value|
|
143
142
|
puts "Adding #{key.to_s}=#{value.to_s}"
|
144
|
-
system "eb tags #{
|
143
|
+
system "eb tags #{env_name} -a #{key.to_s}=#{value.to_s}"
|
145
144
|
end
|
146
145
|
|
147
146
|
end
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StoneWaves
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|