Sha256: b2d84c6162bd8c3da12bfca6698cf2c37a5fbd0bdec4d8322a885a6f39c5b29f

Contents?: true

Size: 570 Bytes

Versions: 10

Compression:

Stored size: 570 Bytes

Contents

module Resources
  
  class Project < Base
    
    def self.configure
      self.prefix = self.prefix.split("/")[0...-1].join("/")
      self.site = self.prefix
    end
    
    def self.print_all(options = [], status_property = nil)
      attributes = [:name, :description]
      projects = find(:all)
      projects.send(:extend, Minglr::Extensions::Array)
      projects = projects.filter(attributes, options)
      
      if projects.any?
        print_collection projects, attributes
      else
        warn "No projects found"
      end
    end
    
  end
  
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
schubert-minglr-1.2.0 lib/minglr/resources/project.rb
schubert-minglr-1.3.0 lib/minglr/resources/project.rb
schubert-minglr-1.3.1 lib/minglr/resources/project.rb
schubert-minglr-1.3.11 lib/minglr/resources/project.rb
schubert-minglr-1.3.2 lib/minglr/resources/project.rb
schubert-minglr-1.3.3 lib/minglr/resources/project.rb
schubert-minglr-1.3.5 lib/minglr/resources/project.rb
schubert-minglr-1.3.8 lib/minglr/resources/project.rb
schubert-minglr-1.3.9 lib/minglr/resources/project.rb
minglr-1.3.11 lib/minglr/resources/project.rb