118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
# File 'lib/collins_shell/asset.rb', line 118
def get tag
asset = asset_get tag, options
if asset then
if not options.quiet then
logs = []
if options.logs and not options.exec? then
logs = call_collins(get_collins_client, "logs") do |client|
client.logs(asset, :size => 5000, :sort => "DESC").reverse
end
end
printer = CollinsShell::AssetPrinter.new asset, self, :logs => logs, :detailed => !options.exec?
puts printer
end
asset_exec asset, options.exec, options.confirm
else
say_error "No such asset #{tag}"
end
end
|