Sha256: fbd8120f0c08aeac89749833e0b5dc056d7473164c04fd40c83a1ca730e9efc3
Contents?: true
Size: 991 Bytes
Versions: 4
Compression:
Stored size: 991 Bytes
Contents
#!/usr/bin/env ruby require 'pushwagner' require 'pushwagner/version' def get_version Pushwagner.info "You must specify which version you wish to deploy" STDIN.gets.strip end # TODO: detect version requirement from config version = 1 # ENV["VERSION"] || get_version env = ARGV[1] || ENV['PW_ENV'] || 'default' main = Pushwagner::Main.new(:config_file => 'config/deploy.yml', :version => version, :environment => env) puts ( %q{ _ _ __ _ _ ___| |____ ____ _ __ _ _ __ ___ _ __ | '_ \| | | / __| '_ \ \ /\ / / _` |/ _` | '_ \ / _ \ '__| | |_) | |_| \__ \ | | \ V V / (_| | (_| | | | | __/ | _ | .__/ \__,_|___/_| |_|\_/\_/ \__,_|\__, |_| |_|\___|_|(oc) |_| |___/ }.colorize(color: :blue, mode: :bold) + ('(' + Pushwagner::VERSION + ')').colorize(color: :cyan)) puts # TODO: detect cli from config case ARGV[0] when "deploy" main.deploy else Pushwagner.warning "Usage: pw <deploy|todo> [environment]" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pushwagner-0.0.2.2 | bin/pw |
pushwagner-0.0.2.1 | bin/pw |
pushwagner-0.0.2.0 | bin/pw |
pushwagner-0.0.1.12 | bin/pw |