Class: ChefCLI::Licensing::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-cli/licensing/base.rb

Class Method Summary collapse

Class Method Details

.addObject



36
37
38
# File 'lib/chef-cli/licensing/base.rb', line 36

def add
  ChefLicensing.add_license
end

.listObject



32
33
34
# File 'lib/chef-cli/licensing/base.rb', line 32

def list
  ChefLicensing.list_license_keys_info
end

.validateObject



26
27
28
29
30
# File 'lib/chef-cli/licensing/base.rb', line 26

def validate
  ChefLicensing.fetch_and_persist.each do |license_key|
    puts "License Key: #{license_key}"
  end
end