Class: Librarian::Chef::Environment

Inherits:
Environment
  • Object
show all
Defined in:
lib/librarian/chef/environment.rb,
lib/librarian/chef/integration/knife.rb

Instance Method Summary collapse

Instance Method Details

#adapter_nameObject


10
11
12
# File 'lib/librarian/chef/environment.rb', line 10

def adapter_name
  "chef"
end

#adapter_versionObject


14
15
16
# File 'lib/librarian/chef/environment.rb', line 14

def adapter_version
  VERSION
end

#config_keysObject


23
24
25
26
27
28
# File 'lib/librarian/chef/environment.rb', line 23

def config_keys
  super + %w[
    install.strip-dot-git
    path
  ]
end

#install_pathObject


18
19
20
21
# File 'lib/librarian/chef/environment.rb', line 18

def install_path
  part = config_db["path"] || "cookbooks"
  project_path.join(part)
end