Module: Engineyard::Local::UI::Common

Included in:
Basic, Colored
Defined in:
lib/engineyard-local/ui.rb

Instance Method Summary collapse

Instance Method Details

#ey_localize(message) ⇒ Object



5
6
7
8
9
# File 'lib/engineyard-local/ui.rb', line 5

def ey_localize(message)
  # TODO this is likely to be insufficient but it's a start
  #      toward making sure the ui is consistent for the user
  message.gsub(/([Aa]) (`)?[Vv]agrant /, '\1n \2ey-local ').gsub(/[Vv]agrant /, 'ey-local ')
end

#say(type, message, opts = nil) ⇒ Object



11
12
13
# File 'lib/engineyard-local/ui.rb', line 11

def say(type, message, opts=nil)
  super(type, ey_localize(message), opts)
end