Skip to content

Commit

Permalink
Expose validate_gitlab_ci_yml action
Browse files Browse the repository at this point in the history
Fixes #566
  • Loading branch information
NARKOZ committed Jul 6, 2020
1 parent c987eed commit a4d1c5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# ENV['GITLAB_API_PRIVATE_TOKEN'] = ''

require 'bundler/setup'
require 'gitlab'
require 'pry'
require_relative '../lib/gitlab'

Pry.start
2 changes: 1 addition & 1 deletion lib/gitlab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.http_proxy(address = nil, port = nil, username = nil, password = nil)
#
# @return [Array<Symbol>]
def self.actions
hidden = /endpoint|private_token|auth_token|user_agent|sudo|get|post|put|\Adelete\z|validate|request_defaults|httparty/
hidden = /endpoint|private_token|auth_token|user_agent|sudo|get|post|put|\Adelete\z|validate\z|request_defaults|httparty/
(Gitlab::Client.instance_methods - Object.methods).reject { |e| e[hidden] }
end
end

0 comments on commit a4d1c5d

Please sign in to comment.