lib/fulmar/domain/service/helper/common_helper.rb in fulmar-1.5.2 vs lib/fulmar/domain/service/helper/common_helper.rb in fulmar-1.6.0
- old
+ new
@@ -15,10 +15,14 @@
def configuration
(@_config_service ||= Fulmar::Domain::Service::ConfigurationService.instance)
end
+ def project
+ full_configuration[:project]
+ end
+
def composer(command, arguments = Fulmar::Infrastructure::Service::ComposerService::DEFAULT_PARAMS)
(storage['composer'] ||= Fulmar::Infrastructure::Service::ComposerService.new(local_shell)).execute(command, arguments)
end
def local_shell
@@ -62,18 +66,18 @@
@storage[configuration.environment] ||= {}
@storage[configuration.environment][configuration.target] ||= {}
end
def info(text)
- puts (ENV['TERM'] == 'xterm-256color' ? text.blue : "* Info: #{text}") if verbose
+ puts(ENV['TERM'] == 'xterm-256color' ? text.blue : "* Info: #{text}") if verbose
end
- def warn(text)
- STDERR.puts (ENV['TERM'] == 'xterm-256color' ? text.magenta : "* Warning: #{text}")
+ def warning(text)
+ STDERR.puts(ENV['TERM'] == 'xterm-256color' ? text.magenta : "* Warning: #{text}")
end
def error(text)
- STDERR.puts (ENV['TERM'] == 'xterm-256color' ? text.light_red : "* Error: #{text}")
+ STDERR.puts(ENV['TERM'] == 'xterm-256color' ? text.light_red : "* Error: #{text}")
end
end
end
end
end