Sha256: b1f424feca7c386725715f83c893f81372c25d2ed1609d52ae5cff3b2d7cdedd

Contents?: true

Size: 591 Bytes

Versions: 5

Compression:

Stored size: 591 Bytes

Contents

require 'httparty'

module YkCommand

  class YkGitlab

    include HTTParty

    headers 'Content-Type' => 'application/json'

    def initialize(config)
      @config = config
      self.class.base_uri @config[:uri]
      @token = @config[:token]
    end

    def get_all_app
      get_group_projects 917,100,0

    end

    def get_all_components

      get_group_projects 514,100,0

    end



    def get_group_projects(group_id,per_page,page)
      self.class.get("/groups/#{group_id}", query: { "private_token" => @token,"per_page"=> per_page,"page"=> page })
    end

  end




end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yk_command-0.5.7 lib/yk_command/gitlab/yk_gitlab.rb
yk_command-0.5.6 lib/yk_command/gitlab/yk_gitlab.rb
yk_command-0.5.5 lib/yk_command/gitlab/yk_gitlab.rb
yk_command-0.5.4 lib/yk_command/gitlab/yk_gitlab.rb
yk_command-0.5.3 lib/yk_command/gitlab/yk_gitlab.rb