Sha256: 8d4bc175e65b2a21bb1c4feca722e7149105caf09f47f40fd2dd31b9b79ca548

Contents?: true

Size: 740 Bytes

Versions: 6

Compression:

Stored size: 740 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/instapusher'

require 'optparse'

options = {}
OptionParser.new do |opts|

  opts.on("-v", "--version", "show version") do |v|
    options[:version] = v
  end

  opts.on("--local", "Hit localhost:3000") do |v|
    options[:local] = v
  end

  opts.on("--staging", "Hit instapusher.net") do |v|
    options[:staging] = v
  end

  opts.on("--debug", "Show debug messages") do |v|
    options[:debug] = v
  end

  opts.on("--api-key", "Set Instapusher api key") do |v|
    options[:api_key] = v
  end

end.parse!

if options[:version]
  puts Instapusher::VERSION

elsif options[:api_key]
  Instapusher::Configuration.ask_for_and_write_api_key

else
  Instapusher::Commands.new(options).deploy
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
instapusher-0.1.9 bin/instapusher
instapusher-0.1.8 bin/instapusher
instapusher-0.1.7 bin/instapusher
instapusher-0.1.6 bin/instapusher
instapusher-0.1.5 bin/instapusher
instapusher-0.1.4 bin/instapusher