lib/vedeu/cli/helpers.rb in vedeu_cli-0.0.9 vs lib/vedeu/cli/helpers.rb in vedeu_cli-0.0.10
- old
+ new
@@ -12,11 +12,11 @@
include Vedeu::Common
# @return [String]
def app_name
- @app_name ||= File.read('./config/app_name' )
+ @app_name ||= File.read('./config/app_name')
end
# @return [String]
def app_bin_path
name + '/bin/'
@@ -109,21 +109,21 @@
end
# @param destination_path [String]
# @return [TrueClass]
def log_processed_file(destination_path)
- Vedeu.log_stdout(type: :create, message: "#{destination_path}")
+ Vedeu.log_stdout(type: :create, message: destination_path)
true
end
# @param destination_path [String]
# @return [TrueClass]
def log_skipped_file(destination_path)
Vedeu.log_stdout(type: :create,
message: "#{destination_path} " +
- Vedeu::EscapeSequences::Esc.red {
+ Vedeu::Esc.red {
'already exists, skipped.'
})
true
end
@@ -139,10 +139,10 @@
# @return [String]
def name
@_name ||= @name.downcase
end
- alias_method :app_root_path, :name
+ alias app_root_path name
# @return [String]
def name_as_class
name.downcase.split(/_|-/).map(&:capitalize).join
end