This file contains hidden or 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
class Test | |
def initialize(attributes = {}) | |
attributes.each do |name, value| | |
send "#{name}=".to_sym, value | |
end | |
end | |
attr :test1, :test2 |
This file contains hidden or 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
require 'rake/file_list' | |
IMAGES = Rake::FileList['*.Dockerfile'].collect {|f| f[/.+(?=\.Dockerfile)/] } | |
namespace :images do | |
IMAGES.each do |name| | |
desc "Build image '#{name}'" | |
task "build_#{name}" do | |
sh "docker build -f #{name}.Dockerfile -t mtrense/#{name} ." | |
end |