module Dev module Cmd class Setup < Array def refresh(dep_hash) puts_debug "Dev::Cmd::Setup.get_auto_setup_directives" strip_auto_entries # auto generate setup entry based on dep values dep_hash.each{ |k,v| if !v.nil? && v.kind_of?(Hash) dep=Dev::Dep.new(v) dep.setup_commands.each{|cmd| self << cmd} end } end end # class Setup end # module Cmd end # module Dev