Sha256: 12105e7148e578a13cb667b8d420d7ba61020bcd0e48672051a6e7b29c9cdc57
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'pathname' options = {} OptionParser.new do |opts| opts.banner = "Usage: lotus-assets --config=path/to/config.rb" opts.on("-c", "--config FILE", "Path to config") do |c| options[:config] = c end end.parse! config = options.fetch(:config) { raise ArgumentError.new("You must specify a configuration file") } config = Pathname.new(config) config.exist? or raise ArgumentError.new("Cannot find configuration file: #{ config }") require 'lotus/assets' load config Lotus::Assets.deploy
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lotus-assets-0.1.0 | bin/lotus-assets |