Sha256: 27bc6b87fc95c52dbc9e47cb1ff75894d0c7d3496d215c50444b04a51cac55a0
Contents?: true
Size: 816 Bytes
Versions: 2
Compression:
Stored size: 816 Bytes
Contents
require 'cuken/api/aruba' World(Cuken::Api::Aruba::Api) module ::Cuken module Api module Common def with_args(*args) backup = ARGV.dup begin ARGV.replace(args) yield rescue Exception => e puts e.backtrace.join("\n") if $!.respond_to?(:status) && $!.status && $!.status > 0 ensure ARGV.replace(backup) end end def clone_pull_error_check(res) if repo = res[/Could not find Repository /] raise RuntimeError, "Could not find Repository #{repo}", caller end if repo = res[/ERROR: (.*) doesn't exist. Did you enter it correctly?/,1] raise RuntimeError, "ERROR: #{repo} doesn't exist. Did you enter it correctly? #{repo}", caller end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cuken-0.1.16 | lib/cuken/api/common.rb |
cuken-0.1.15 | lib/cuken/api/common.rb |