Sha256: f270ebffb2c7afd8057a94dcbce6a205ebfee7c47b84ebe6337601d4007fd6bd
Contents?: true
Size: 727 Bytes
Versions: 9
Compression:
Stored size: 727 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/instapusher2' require 'optparse' options = {} OptionParser.new do |opts| opts.on("-v", "--version", "show version") do |v| options[:version] = v end opts.on("--quick", "Run quickly") do |v| options[:quick] = v end opts.on("--local", "Run locally") do |v| options[:local] = v end opts.on("--debug", "Show debug messages") do |v| options[:debug] = v end opts.on("--api-key", "Setup Instapusher api key") do |v| options[:api_key] = v end end.parse! if options[:version] puts Instapusher2::VERSION elsif options[:api_key] Instapusher2::Configuration.ask_for_and_write_api_key else Instapusher2::Commands.new(options).deploy end
Version data entries
9 entries across 9 versions & 2 rubygems