Class: Librarian::Chef::Cli

Inherits:
Librarian::Cli
  • Object
show all
Extended by:
Particularity
Defined in:
lib/librarian/chef/cli.rb

Defined Under Namespace

Modules: Particularity

Instance Method Summary collapse

Methods included from Particularity

root_module

Instance Method Details

#initObject


20
21
22
# File 'lib/librarian/chef/cli.rb', line 20

def init
  copy_file environment.specfile_name
end

#installObject


31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/librarian/chef/cli.rb', line 31

def install
  ensure!
  clean! if options["clean"]
  if options.include?("strip-dot-git")
    strip_dot_git_val = options["strip-dot-git"] ? "1" : nil
    environment.config_db.local["install.strip-dot-git"] = strip_dot_git_val
  end
  if options.include?("path")
    environment.config_db.local["path"] = options["path"]
  end
  resolve!
  install!
end