Sha256: 2f27b1ddf70be6788764c4b823d873eedb21f973a6937e0c0d4ea38295e7a319
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' options = {} OptionParser.new do |opts| opts.on("-e", "--environment LIBRARY", "Require the LIBRARY before executing your script") do |env| options[:environment] = env end end.parse! require "yads" deployer = Yads::Deployer.new(options[:environment], STDOUT) if ARGV.empty? commands = ["setup", "deploy"].concat(deployer.command_names).join("|") puts "Usage: yads [#{commands}]" else ARGV.each do |cmd| deployer.send(cmd) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yads-0.3.1 | bin/yads |
yads-0.3.0.beta | bin/yads |