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



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

def generate_keys
  Inspec.with_feature("inspec-cli-sign-generate-keys") {
    puts "Generating keys"
    InspecPlugins::Sign::Base.keygen(options)
  }
end

#profile(profile_path) ⇒ Object



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

def profile(profile_path)
  Inspec.with_feature("inspec-cli-sign-profile") {
    InspecPlugins::Sign::Base.profile_sign(profile_path, options)
  }
end

#verify(signed_profile_path) ⇒ Object



107
108
109
110
111
# File 'lib/plugins/inspec-sign/lib/inspec-sign/cli.rb', line 107

def verify(signed_profile_path)
  Inspec.with_feature("inspec-cli-sign-verify") {
    InspecPlugins::Sign::Base.profile_verify(signed_profile_path)
  }
end