Sha256: ac0cdda331a2471972dc5d5bf2c17dc84873ffec2fee737b6ec4c36ea81226dd
Contents?: true
Size: 711 Bytes
Versions: 5
Compression:
Stored size: 711 Bytes
Contents
#!/usr/bin/env ruby file = ARGV[0] abort "Error: require docklet file!" unless file $PROGRAM_NAME = file ARGV.shift # Tricks to support env preset vars (high priority before register) argv = ARGV idx = argv.index('--env') || argv.index('-e') if idx ENV['APP_ENV'] ||= argv[idx+1] end idx = argv.index('--release') || argv.index('-r') if idx ENV['APP_RELEASE'] ||= argv[idx+1] end lib_path = File.join(__dir__, '../lib') $:.unshift lib_path unless $:.include?(lib_path) require "dklet" extend Dklet::DSL load file # load tag-specific features, eg. rails_web app_tags.each do |atag| #puts "==loading #{atag}" require "dklet/app_tags/#{atag}" end let_cli_magic_start! # make dockerize fun with ruby
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
dklet-0.1.6 | exe/rundklet |
dklet-0.1.5 | exe/rundklet |
dklet-0.1.4 | exe/rundklet |
dklet-0.1.3 | exe/rundklet |
dklet-0.1.2 | exe/rundklet |