Sha256: c3644c39f423849da57b2e801b0eda3627f95530d6120e77b89fe9fa03c4605c
Contents?: true
Size: 619 Bytes
Versions: 3
Compression:
Stored size: 619 Bytes
Contents
# 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
git_cloner-0.0.3 | lib/git_cloner_dsl.rb |
git_cloner-0.0.2 | lib/git_cloner_dsl.rb |
git_cloner-0.0.1 | lib/git_cloner_dsl.rb |