lib/generators/teleport/templates/capistrano/tasks/setup_config.rake in teleporter-2.0.10 vs lib/generators/teleport/templates/capistrano/tasks/setup_config.rake in teleporter-2.0.11

- old
+ new

@@ -23,12 +23,10 @@ link: "/etc/init.d/sidekiq_{{application}}_{{stage}}" }, ]) execute :mkdir, "-p #{shared_path}/config" execute :mkdir, "-p #{current_path}" - application = fetch(:application) - stage = fetch(:stage) config_files = fetch(:config_files) config_files.each do |file| smart_template file end @@ -70,9 +68,9 @@ end def sub_strings(input_string) output_string = input_string input_string.scan(/{{(\w*)}}/).each do |var| - output_string.gsub!("{{#{var[0]}}}", fetch(var[0].to_sym)) + output_string.gsub!("{{#{var[0]}}}", fetch(var[0].to_sym).to_s) end output_string end