Module: EasyAppHelper
- Extended by:
- EasyAppHelper
- Included in:
- EasyAppHelper
- Defined in:
- lib/easy_app_helper.rb,
lib/easy_app_helper/config.rb,
lib/tasks/template_manager.rb,
lib/easy_app_helper/version.rb,
lib/easy_app_helper/logger/wrapper.rb,
lib/easy_app_helper/managed_logger.rb,
lib/easy_app_helper/config/initializer.rb,
lib/easy_app_helper/logger/initializer.rb,
lib/easy_app_helper/config/compatibility.rb
Defined Under Namespace
Modules: Config, Logger, Tasks
Constant Summary
collapse
- ManagedConfig =
EasyAppHelper::Config::Initializer.build_config
- VERSION =
'2.1.1'
- ManagedLogger =
EasyAppHelper::Logger::Initializer.build_logger
Instance Method Summary
collapse
Instance Method Details
#puts_and_logs(*args) ⇒ Object
15
16
17
|
# File 'lib/easy_app_helper.rb', line 15
def puts_and_logs(*args)
logger.puts_and_logs *args
end
|
#safely_exec(message, *args, &block) ⇒ Object
19
20
21
22
23
24
25
26
|
# File 'lib/easy_app_helper.rb', line 19
def safely_exec(message, *args, &block)
if self[:simulate]
puts_and_logs "SIMULATING: #{message}" unless message.nil?
else
puts_and_logs message
yield(*args)
end
end
|