Sha256: 3ae3189c16d6ed543db70b12ca360c0e63f860c13b13a4936bc4d9ebe11300ce

Contents?: true

Size: 473 Bytes

Versions: 8

Compression:

Stored size: 473 Bytes

Contents

#!/usr/bin/env ruby
require 'pvcglue/cli'

# Allow use of Capistrano style environment syntax and convert to 'standard' syntax
# Example:  `pvc production bootstrap` ==> `pvc bootstrap --stage=production`
# TODO: refactor to use a list of user specified environments
if ARGV.count >= 2 && %w[alpha beta gamma delta preview production staging all].include?(ARGV[0])
  ARGV[0], ARGV[1] = ARGV[1], "--stage=#{ARGV[0]}"
end

# puts ARGV.inspect

Pvcglue::CLI.start
puts "Done."

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pvcglue-0.1.15 bin/pvc
pvcglue-0.1.14 bin/pvc
pvcglue-0.1.13 bin/pvc
pvcglue-0.1.12 bin/pvc
pvcglue-0.1.11 bin/pvc
pvcglue-0.1.10 bin/pvc
pvcglue-0.1.9 bin/pvc
pvcglue-0.1.8 bin/pvc