diff options
| author | mokha <mokha@cisco.com> | 2018-03-22 10:09:23 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-03-22 10:09:23 -0600 |
| commit | 0dbc71a52e8c74ad57dbb33515cfb0b60d0b6285 (patch) | |
| tree | c63260da01b8002ae7ebd5bc821e4daa59fcfb94 | |
| parent | a1372633fb1969526ddecc69b85163e90cd6bc95 (diff) | |
add shiro to default and always print default settings.
| -rw-r--r-- | lib/ats/cli/setup.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/ats/cli/setup.rb b/lib/ats/cli/setup.rb index cfccd58..4e1ee77 100644 --- a/lib/ats/cli/setup.rb +++ b/lib/ats/cli/setup.rb @@ -5,6 +5,10 @@ module ATS desc 'setup', 'Initialize the .atsrc file.' def setup + say "Default Configuration:", :green + yaml = YAML.dump(default_settings) + say yaml, :yellow + say "Current Configuration:", :green say JSON.pretty_generate(configuration.to_h), :green @@ -18,8 +22,6 @@ module ATS say "Configuration file not found." new_file = configuration.config_files.first say "New file created at #{new_file}." - yaml = YAML.dump(default_settings) - say yaml, :yellow IO.write(new_file, yaml) File.chmod(0600, new_file) end @@ -42,6 +44,12 @@ module ATS port: 443, scheme: 'https', }, + shiro: { + bearer_token: '', + host: 'auth.amp.cisco.com', + port: 443, + scheme: 'https', + }, } } end |
