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

Version Path
instapusher2-0.0.8 bin/instapusher2
instapusher2-0.0.7 bin/instapusher2
instapusher2-0.0.6 bin/instapusher2
instapusher2-0.0.5 bin/instapusher2
instapusher2-0.0.4 bin/instapusher2
instapusher2-0.0.3 bin/instapusher2
instapusher2-0.0.2 bin/instapusher2
instapusher2-0.0.1 bin/instapusher2
instapusher-0.0.1 bin/instapusher2