Method: Marshmallow.profiles_installed

Defined in:
lib/marshmallow.rb

.profiles_installedObject



241
242
243
244
245
246
247
248
249
250
251
252
253
254
# File 'lib/marshmallow.rb', line 241

def self.profiles_installed
	if `profiles -C`.chomp == "There are no configuration profiles installed in the system domain"
		puts "No profiles installed"
	else
		profiles=`profiles -C`.lines

		installed=[]
		for x in profiles
		 	installed.push(x.split.last)
		end
		installed.delete("installed")
		puts installed
	end
end