Sha256: 7288627ad5bdc467366fb9f95384f19a7ca7edf99f5f5e18cce966a1fcfde5b3

Contents?: true

Size: 457 Bytes

Versions: 111

Compression:

Stored size: 457 Bytes

Contents

module CFoundry::V1
  class Framework
    attr_accessor :name, :description, :runtimes, :detection

    def initialize(name, description = nil, runtimes = [], detection = nil)
      @name = name
      @description = description
      @runtimes = runtimes
      @detection = detection
    end

    def eql?(other)
      other.is_a?(self.class) && other.name == @name
    end
    alias :== :eql?

    def apps
      [] # not supported by v1
    end
  end
end

Version data entries

111 entries across 111 versions & 4 rubygems

Version Path
cfoundry-0.3.31 lib/cfoundry/v1/framework.rb
cfoundry-0.3.30 lib/cfoundry/v1/framework.rb
cfoundry-0.3.29 lib/cfoundry/v1/framework.rb
cfoundry-0.3.28 lib/cfoundry/v1/framework.rb
cfoundry-0.3.27 lib/cfoundry/v1/framework.rb
cfoundry-0.3.26 lib/cfoundry/v1/framework.rb
cfoundry-0.3.25 lib/cfoundry/v1/framework.rb
cfoundry-0.3.24 lib/cfoundry/v1/framework.rb
cfoundry-0.3.23 lib/cfoundry/v1/framework.rb
cfoundry-0.3.22 lib/cfoundry/v1/framework.rb
cfoundry-0.3.21 lib/cfoundry/v1/framework.rb