lib/gitlab/cli_helpers.rb
# Helper function to call Gitlab commands with args.
Helper function to call Gitlab commands with args.
Helper function to call Gitlab commands with args .
def gitlab_helper(cmd, args=[])
      begin
        data = args.any? ? Gitlab.send(cmd, *args) : Gitlab.send(cmd)
      rescue => e
        puts e.message
        yield if block_given?
      end
      data
    end
def gitlab_helper ( cmd , args = [ ] ) begin data = args . any? ? Gitlab . send ( cmd , * args ) : Gitlab . send ( cmd ) rescue => e puts e . message yield if block_given? end data end
Helper function to call Gitlab commands with args.
Helper function to call Gitlab commands with args .
cmd
<not_specific>
args
<not_specific>