Class: AzureInfo::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/azure_info/base.rb

Direct Known Subclasses

Account, Configure

Instance Method Summary collapse

Instance Method Details

#check_az_installed!Object

Raises:



3
4
5
6
7
# File 'lib/azure_info/base.rb', line 3

def check_az_installed!
  installed = system("type az > /dev/null 2>&1")
  return if installed
  raise Error.new("ERROR: az is not installed. Please install the az command.")
end