Sha256: bfe1ff44edf3f9594ba17d8ee45f7b1f636048eceef0942ba71ff670f9be46f8

Contents?: true

Size: 662 Bytes

Versions: 2

Compression:

Stored size: 662 Bytes

Contents

require File.dirname(__FILE__) + '/../util'
require File.dirname(__FILE__) + '/layout'
module Gator
  module Project

    def self.project
      @project
    end

    def self.project=(project)
      @project = project
    end

    def project( project= nil )
      Project.project = project unless project.nil?
      Project.project
    end

    class ProjectBase

      attr_accessor :name, :layout

      def initialize
        @name = ""
        @layout = Layout.default
      end

      def path(*args)
        File.join(Gator::Util.find_gator_project, layout.expand(*args))
      end

      def options
        @options ||= {}
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gator-0.0.10.pre lib/gator/project/project.rb
gator-0.0.9.pre lib/gator/project/project.rb