Method: Boilercode::Config#initialize

Defined in:
lib/boilercode/config.rb

#initializeConfig

Returns a new instance of Config.



4
5
6
7
8
9
10
# File 'lib/boilercode/config.rb', line 4

def initialize
  @file_path = File.expand_path("~/.boilercode.yml")
  @creds = read_from_file
  if token_expired?
    puts Boilercode::Command.new.pastel.red "Token expired. Please re-authenticate."
  end
end