Sha256: 170607e5fdcaef3ac2917c9d3a8624eca4847ca313506ce16c193a84439324c4
Contents?: true
Size: 890 Bytes
Versions: 21
Compression:
Stored size: 890 Bytes
Contents
require 'claide' require_relative 'command' module LgPodPlugin class Command class Init < Command self.command = "init" self.abstract_command = false self.summary = '初始化gitlab projects 信息' attr_accessor :username attr_accessor :password attr_accessor :host self.description = <<-DESC Manipulate the download cache for pods, like printing the cache content or cleaning the pods cache. DESC def initialize(argv) self.host = argv.option('host') self.username = argv.option('username') self.password = argv.option('password') super end def run raise unless self.host raise unless self.username raise unless self.password GitLabAPI.request_gitlab_access_token(self.host, self.username, self.password) end end end end
Version data entries
21 entries across 21 versions & 1 rubygems