This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.erlang-solutions.com/downloads/download-erlang-otp | |
# wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
# sudo dpkg -i erlang-solutions_1.0_all.deb | |
deb http://packages.erlang-solutions.com/ubuntu trusty contrib | |
deb http://packages.erlang-solutions.com/ubuntu saucy contrib | |
deb http://packages.erlang-solutions.com/ubuntu precise contrib | |
wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | |
sudo apt-key add erlang_solutions.asc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyModule | |
# Regenerating code | |
end unless __FILE__ == $0 | |
if __FILE__ == $0 | |
require 'savon' | |
split_on = "#" + " Regenerating code" | |
code = File.read(__FILE__).split(split_on).last | |
wsdl_file_path = File.join(File.dirname(__FILE__), ARGV.first || raise("Gimme file!")) |