Class: InspecPlugins::Sign::CLI

Inherits:
Object
  • Object
show all
Includes:
Inspec::Dist
Defined in:
lib/plugins/inspec-sign/lib/inspec-sign/cli.rb

Constant Summary

Constants included from Inspec::Dist

Inspec::Dist::AUTOMATE_PRODUCT_NAME, Inspec::Dist::COMPLIANCE_PRODUCT_NAME, Inspec::Dist::EXEC_NAME, Inspec::Dist::PRODUCT_NAME, Inspec::Dist::SERVER_PRODUCT_NAME

Instance Method Summary collapse

Instance Method Details

#generate_keysObject



87
88
89
90
# File 'lib/plugins/inspec-sign/lib/inspec-sign/cli.rb', line 87

def generate_keys
  puts "Generating keys"
  InspecPlugins::Sign::Base.keygen(options)
end

#profile(profile_path) ⇒ Object



97
98
99
# File 'lib/plugins/inspec-sign/lib/inspec-sign/cli.rb', line 97

def profile(profile_path)
  InspecPlugins::Sign::Base.profile_sign(profile_path, options)
end

#verify(signed_profile_path) ⇒ Object



102
103
104
# File 'lib/plugins/inspec-sign/lib/inspec-sign/cli.rb', line 102

def verify(signed_profile_path)
  InspecPlugins::Sign::Base.profile_verify(signed_profile_path)
end