Skip to content

Commit d5032d4

Browse files
committed
fix typo rdb instead of rds
1 parent b260f8c commit d5032d4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/tasks/eb_fast_deploy.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ def set_vars
105105
puts "(Warning) ruby_container_options doesn't exists"
106106
end
107107

108-
@rdb_network_options_path = Rails.root.to_s+"/config/eb_environments/#{ENV['ENVIRONMENT']}/rdb_network_options"
108+
@rds_network_options_path = Rails.root.to_s+"/config/eb_environments/#{ENV['ENVIRONMENT']}/rds_network_options"
109109
if File.exists?(@env_file_path)
110-
@rdb_network_options = Dotenv::Environment.new(@rdb_network_options_path);
110+
@rds_network_options = Dotenv::Environment.new(@rds_network_options_path);
111111
else
112-
puts "(Warning) rdb_network_options doesn't exists"
112+
puts "(Warning) rds_network_options doesn't exists"
113113
end
114114

115115
AWS.config(
@@ -129,17 +129,17 @@ def rails_options
129129
opts
130130
end
131131

132-
def rdb_network_options
132+
def rds_network_options
133133
opts = []
134-
@rdb_network_options.each do |k,v|
135-
raise "(Error) Unknown option \"#{k}\"=#{v} in #{@rdb_network_options_path}, please check Elastic Beanstalk documentation and EbFastDeploy::OPTIONS" unless EbFastDeploy::OPTIONS.include?(k)
134+
@rds_network_options.each do |k,v|
135+
raise "(Error) Unknown option \"#{k}\"=#{v} in #{@rds_network_options_path}, please check Elastic Beanstalk documentation and EbFastDeploy::OPTIONS" unless EbFastDeploy::OPTIONS.include?(k)
136136
opts << {:namespace => EbFastDeploy::OPTIONS[k][:namespace], :option_name =>EbFastDeploy::OPTIONS[k][:option_name], :value=>v}
137137
end
138138
opts
139139
end
140140

141141
def all_options
142-
rdb_network_options + rails_options
142+
rds_network_options + rails_options
143143
end
144144

145145
def print_env
@@ -150,8 +150,8 @@ def print_env
150150
puts "@deploy_zip_file_path: #{@deploy_zip_file_path}"
151151

152152
puts "--------------- RDS AND NETWORK --------------\n"
153-
rdb_network_options
154-
rdb_network_options.each do |opt|
153+
rds_network_options
154+
rds_network_options.each do |opt|
155155
puts "#{opt[:namespace]} #{opt[:option_name]}=#{opt[:value]}"
156156
end
157157

0 commit comments

Comments
 (0)