Module: Aocli::Commands::SaveCookie

Defined in:
lib/aocli/commands/save_cookie.rb

Class Method Summary collapse

Class Method Details

.run!(options) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/aocli/commands/save_cookie.rb', line 4

def self.run!(options)
  Aocli::Config.add_config(key: :cookie, value: options[:cookie])

  puts "    ### Cookie saved to \#{Aocli::Values::CONFIG_FILE_PATH} ###\n\n    If you ever need to reset this cookie, you can use the save cookie command again\n    or simply edit that file.\n  MSG\nend\n"