# encoding: utf-8 require 'git_cloner_dsl_model' module GitCloner class Dsl attr_accessor :git_cloner # String Define [:default_output].each do |f| define_method f do |value| eval "@git_cloner.#{f.to_s} = '#{value}'", binding end end # Array/Hash/Boolean Define [:repos].each do |f| define_method f do |value| eval "@git_cloner.#{f.to_s} = #{value}", binding end end def initialize @git_cloner = GitCloner::DslModel.new @git_cloner.default_output = './' @git_cloner.repos = [] end end end