Class: Mcpeasy::GoogleCommands

Inherits:
Thor
  • Object
show all
Defined in:
lib/mcpeasy/cli.rb

Instance Method Summary collapse

Instance Method Details

#authObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/mcpeasy/cli.rb', line 9

def auth
  require_relative "../utilities/gcal/service"
  tool = Gcal::Service.new(skip_auth: true)
  result = tool.authenticate
  if result[:success]
    puts "✅ Successfully authenticated with Google services"
    puts "   This enables access to Calendar, Drive, and Meet"
  else
    puts "❌ Authentication failed: #{result[:error]}"
    exit 1
  end
end