lib/site_hook/config.rb
#
# Collect project names that meet certain criteria
Collect project names that meet certain criteria
Collect project names that meet certain criteria
def collect_public
      public_vars     = instance_variables.reject do |project_var|
        instance_variable_get(project_var).private
      end
      public_projects = []
      public_vars.each do |var|
        public_projects << instance_variable_get(var)
      end
      public_projects
    end
def collect_public public_vars = instance_variables . reject do | project_var | instance_variable_get ( project_var ) . private end public_projects = [ ] public_vars . each do | var | public_projects << instance_variable_get ( var ) end public_projects end
Collect project names that meet certain criteria
Collect project names that meet certain criteria