class Labelito::CommandTool
Public Instance Methods
clone(from_repo, to_repo)
click to toggle source
# File lib/Labelito.rb, line 14 def clone(from_repo, to_repo) token = options[:github_token] token ||= ENV["LABELITO_GITHUB_TOKEN"] if token == nil puts("You should pass a token or define it as a environment variable, LABELITO_GITHUB_TOKEN") exit -1 end tool = Labelito::Tool.with_token(token) tool.clone(from_repo, to_repo) end
create(template_path, repo)
click to toggle source
# File lib/Labelito.rb, line 27 def create(template_path, repo) token = options[:github_token] token ||= ENV["LABELITO_GITHUB_TOKEN"] if token == nil puts("You should pass a token or define it as a environment variable, LABELITO_GITHUB_TOKEN") exit -1 end tool = Labelito::Tool.with_token(token) tool.create(template_path, repo) end