Sha256: 7fdd93a8bd0d6e0782678478486ac826e7e6f9a1d9ed3f43ea0db3a36ffcb012

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

require 'grit'

module Spider; module AppServer
    
    class GitApp < App
        
        def initialize(path)
            repo = Grit::Repo.new(path)
            spec = nil
            repo.tree.blobs.each do |blob|
                next unless blob.basename =~ /\.appspec$/
                spec = blob.data
                @spec = Spider::App::AppSpec.eval(spec)
                @last_modified = repo.commits.first.authored_date # FIXME
                break
            end
            
        end
        
    end
    
end; end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spiderfw-0.5.13 apps/app_server/lib/git_app.rb
spiderfw-0.5.12 apps/app_server/lib/git_app.rb
spiderfw-0.5.11 apps/app_server/lib/git_app.rb
spiderfw-0.5.10 apps/app_server/lib/git_app.rb