Method: InspecPlugins::Habitat::Profile#upload

Defined in:
lib/plugins/inspec-habitat/lib/inspec-habitat/profile.rb

#uploadObject



74
75
76
77
78
79
80
81
82
83
84
# File 'lib/plugins/inspec-habitat/lib/inspec-habitat/profile.rb', line 74

def upload
  validate_habitat_auth_token
  hart_file = create
  upload_hart(hart_file)
rescue => e
  @log.debug(e.backtrace.join("\n"))
  exit_with_error(
    'Unable to upload Habitat artifact.',
    "#{e.class} -- #{e.message}",
  )
end