Sha256: a97989003215f024bf13ca500db39ceabccbd1a755b1db0e6226cfff028d280d
Contents?: true
Size: 705 Bytes
Versions: 1
Compression:
Stored size: 705 Bytes
Contents
# frozen_string_literal: true module JekyllPush # # class Command < Jekyll::Command class << self def init_with_program(prog) prog.command(:push) do |c| c.syntax 'push [args]' c.description 'pushes compiled site to specified github branch' c.option :user, '--user USER', 'Override GitHub user name use' c.option :pw, '--pw PASSWORD', 'Override GitHub user password to use' c.action do |args, opts| raise Error::MissingBranch, "You must specify a target branch name after 'jekyll push'." if args.empty? args.each { |a| JekyllPush.run_command a, opts } end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll_push-0.1.2 | lib/jekyll_push/command.rb |