Sha256: 40527ab14e485ed7e94341151f8d04ecd86fc4862351d08c4878a7376e19bfc5
Contents?: true
Size: 560 Bytes
Versions: 7
Compression:
Stored size: 560 Bytes
Contents
require 'rest_client' module Lolcommits class Uploldz < Plugin attr_accessor :endpoint def initialize(runner) super self.name = 'uploldz' self.default = false self.options.concat(['endpoint']) end def run if configuration['endpoint'].empty? puts "Endpoint URL is empty, please run lolcommits --config to add one." else RestClient.post(configuration['endpoint'], :file => File.new(self.runner.main_image), :repo => self.runner.repo) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems