Module: Sunzi::Utility

Included in:
Cloud::Base, DNS::Base
Defined in:
lib/sunzi/utility.rb

Instance Method Summary collapse

Instance Method Details

#abort_with(text) ⇒ Object



3
4
5
6
# File 'lib/sunzi/utility.rb', line 3

def abort_with(text)
  Logger.error text
  abort
end

#exit_with(text) ⇒ Object



8
9
10
11
# File 'lib/sunzi/utility.rb', line 8

def exit_with(text)
  Logger.success text
  exit
end

#say(text) ⇒ Object



13
14
15
# File 'lib/sunzi/utility.rb', line 13

def say(text)
  Logger.info text
end