Skip to content

Commit 10eba0b

Browse files
author
Ubuntu
committed
add task to print the env
1 parent 714a830 commit 10eba0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/tasks/eb_fast_deploy.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,14 @@ def print_env
227227

228228
end
229229

230+
desc "print the current env status"
231+
task :print_current_status do
232+
set_vars
233+
env = AWS.elastic_beanstalk.client.describe_environments(:application_name=>ENV['APP_NAME'], :environment_names => [ENV['ENVIRONMENT']]).first
234+
configuration_settings = AWS.elastic_beanstalk.client.describe_configuration_settings(:application_name=>ENV['APP_NAME'], :environment_name => ENV['ENVIRONMENT'])[:configuration_settings].first
235+
configuration_settings[:option_settings].each {|o| puts "#{o[:namespace]} #{o[:option_name]}=#{o[:value]}"}
236+
end
237+
230238
desc "upload project to s3"
231239
task :upload do
232240
print "=== upload project to s3 ===\n"

0 commit comments

Comments
 (0)