Sha256: 55afe110b23551b49da58c6f5b3269dcc0df28833862ac83d4afda0d727c7c8a

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

module KnifeCookbookDependencies
  class MetaCookbook
    attr_reader :name, :dependencies

    def initialize name, dependencies
      @name = name
      @dependencies = dependencies
    end

    def versions
      @v ||= [DepSelector::Version.new('1.0.0')]
    end

    def latest_constrained_version
      versions.first
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
knife_cookbook_dependencies-0.0.3 lib/knife_cookbook_dependencies/metacookbook.rb
knife_cookbook_dependencies-0.0.2 lib/knife_cookbook_dependencies/metacookbook.rb
knife_cookbook_dependencies-0.0.1 lib/knife_cookbook_dependencies/metacookbook.rb