Sha256: 6e745f4cffc1296f6fd763e49d406000ad4eb27487e72559c76e9969601021e7
Contents?: true
Size: 516 Bytes
Versions: 8
Compression:
Stored size: 516 Bytes
Contents
#!/usr/bin/env ruby STDOUT.sync = true require 'trollop' opts = Trollop::options do banner <<-EOS jgd is an automated deployer of Jekyll site to Github Pages Usage: jgd [options] EOS opt :url, "Github URL", :type=>String, :default=>'' end url = opts[:url] if url.empty? url = `git config --get remote.origin.url` end spec = Gem::Specification.find_by_name("jgd") root = spec.gem_dir script = File.join(root, 'bash/deploy.sh') if !system("#{script} #{url}") raise "deployment failed, see log above" end
Version data entries
8 entries across 8 versions & 1 rubygems
Version | Path |
---|---|
jgd-1.5.3 | bin/jgd |
jgd-1.5.2 | bin/jgd |
jgd-1.5.1 | bin/jgd |
jgd-1.5 | bin/jgd |
jgd-1.4 | bin/jgd |
jgd-1.3.1 | bin/jgd |
jgd-1.3 | bin/jgd |
jgd-1.2 | bin/jgd |