Sha256: ad9b1b02b7398ff15966cd494e051e05df16189254f7b2cfbfbb4986a6d9ab5e

Contents?: true

Size: 768 Bytes

Versions: 6

Compression:

Stored size: 768 Bytes

Contents

require 'knife-solo/cookbook_manager'

module KnifeSolo
  class Librarian
    include CookbookManager

    def self.gem_libraries
      %w[librarian/action librarian/chef]
    end

    def self.conf_file_name
      'Cheffile'
    end

    def self.gem_name
      'librarian-chef'
    end

    def install!
      ui.msg "Installing Librarian cookbooks..."
      ::Librarian::Action::Resolve.new(env).run
      ::Librarian::Action::Install.new(env).run
      env.install_path
    end

    def env
      @env ||= ::Librarian::Chef::Environment.new
    end

    def initial_config
      "site 'http://supermarket.getchef.com/api/v1'"
    end

    # Returns an array of strings to gitignore when bootstrapping
    def gitignores
      %w[/tmp/librarian/]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
knife-solo-0.7.0.pre3 lib/knife-solo/librarian.rb
knife-solo-0.7.0.pre2 lib/knife-solo/librarian.rb
knife-solo-0.7.0.pre lib/knife-solo/librarian.rb
knife-solo-0.6.0 lib/knife-solo/librarian.rb
knife-solo-0.5.1 lib/knife-solo/librarian.rb
knife-solo-0.5.0 lib/knife-solo/librarian.rb