39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/sym/application.rb', line 39
def execute!
initialize_key_source
unless command
raise Sym::Errors::InsufficientOptionsError,
" Can not determine what to do
from the options: \ n " +
" #{self.provided_options.inspect.green.bold}\n" +
"and flags #{self.provided_flags.to_s.green.bold}"
end
log :info, "command located is #{command.class.name.blue.bold}"
self.result = command.execute.tap do |result|
log :info, "result is #{result.nil? ? 'nil' : result[0..10].to_s.blue.bold }..." if opts[:trace]
end
end
|