File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments