Sha256: 697d54835e4df4feaf037b86075cd5efe019e010ad3aa84d227c1914d2ded765
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require "optparse" require "pathname" options = {} OptionParser.new do |opts| opts.banner = "Usage: hanami-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 "hanami/assets" load config Hanami::Assets.deploy
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hanami-assets-2.1.0.rc2 | bin/hanami-assets |
hanami-assets-2.1.0.rc1 | bin/hanami-assets |
hanami-assets-2.1.0.beta2 | bin/hanami-assets |
hanami-assets-1.3.5 | bin/hanami-assets |