lib/uffizzi/cli/project/compose.rb in uffizzi-cli-0.4.0 vs lib/uffizzi/cli/project/compose.rb in uffizzi-cli-0.5.0
- old
+ new
@@ -8,11 +8,11 @@
module Uffizzi
class CLI::Project::Compose < Thor
include ApiClient
- desc 'set', 'set'
+ desc 'set [OPTIONS]', 'set'
def set
run(options, 'set')
end
desc 'unset', 'unset'
@@ -94,10 +94,10 @@
def prepare_params(file_path)
begin
compose_file_data = EnvVariablesService.substitute_env_variables(File.read(file_path))
rescue Errno::ENOENT => e
- return Uffizzi.ui.say(e)
+ raise Uffizzi::Error.new(e.message)
end
compose_file_dir = File.dirname(file_path)
dependencies = ComposeFileService.parse(compose_file_data, compose_file_dir)
absolute_path = File.absolute_path(file_path)