Sha256: f507b38b4a125705d64437154c6d6b711613d1fc575d6322e7b393f247975b62

Contents?: true

Size: 498 Bytes

Versions: 8

Compression:

Stored size: 498 Bytes

Contents

require 'settingslogic'
require 'terminal-announce'

# require_relative 'interactive_setup'

# Singleton for loading configs from common paths.
class Settings < Settingslogic
  # include InteractiveSetup

  config_path = "/etc"

  config_file = File.expand_path "#{config_path}/veracodecli.yaml"
  source config_file if File.exist? config_file

  load!
rescue Errno::ENOENT
  Announce.failure "Unable to find a configuration at #{config_path}/veracodecli.yml"
  exit
  # InteractiveSetup.start
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
veracodecli-1.0.9 lib/veracodecli/settings.rb
veracodecli-1.0.8 lib/veracodecli/settings.rb
veracodecli-1.0.7 lib/veracodecli/settings.rb
veracodecli-1.0.6 lib/veracodecli/settings.rb
veracodecli-1.0.5 lib/veracodecli/settings.rb
veracodecli-1.0.4 lib/veracodecli/settings.rb
veracodecli-1.0.3 lib/veracodecli/settings.rb
veracodecli-1.0.2 lib/veracodecli/settings.rb