lib/vedeu/generator/helpers.rb in vedeu-0.4.38 vs lib/vedeu/generator/helpers.rb in vedeu-0.4.39
- old
+ new
@@ -1,9 +1,13 @@
module Vedeu
module Generator
+ # Provides functionality used by the generators to build the client
+ # application.
+ #
+ # @api private
module Helpers
# @return [String]
def app_name
@app_name ||= File.read('./config/app_name')
@@ -60,9 +64,16 @@
end
# @return [String]
def name_as_class
name.downcase.split(/_|-/).map(&:capitalize).join
+ end
+
+ # @return [String]
+ def output(message = '')
+ Vedeu.log_stdout(type: :info, message: message)
+
+ message
end
# @param source [String]
# @return [String]
def parse(source)