Sha256: 9d2a71569a37e5b18b8bdb39bb52cb34ec0dac4d1d50ccb010d16224791beed0

Contents?: true

Size: 721 Bytes

Versions: 2

Compression:

Stored size: 721 Bytes

Contents

module Gator

  class Application

    def initialize
      self
    end

    def execute( args )
      configuration.load_configuration
    end

    def configuration
      @configuration ||= Configuration.new
    end

    def project
      @project
    end

    def project=( proj )
      @project= proj
    end

    def shell
      @shell ||= Shell.new
    end

  end

  class << self

    attr_accessor :application
    attr_accessor :base_dir

    def configuration
      application.configuration
    end

    def project
      application.project
    end

    def project=(proj)
      application.project= proj
    end

    def shell
      application.shell
    end

  end

  self.application= Application.new

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gator-0.0.4.pre lib/core/cli/application.rb
gator-0.0.3.pre lib/core/cli/application.rb