Sha256: c5fef408e2861f8ef680c45a0c562eae935349ad19c7fd8af0bc4179eb2ac816

Contents?: true

Size: 545 Bytes

Versions: 21

Compression:

Stored size: 545 Bytes

Contents

#!/usr/bin/env ruby

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

21 entries across 21 versions & 1 rubygems

Version Path
hanami-assets-1.3.4 bin/hanami-assets
hanami-assets-1.3.3 bin/hanami-assets
hanami-assets-1.3.2 bin/hanami-assets
hanami-assets-1.3.1 bin/hanami-assets
hanami-assets-1.3.0 bin/hanami-assets
hanami-assets-1.3.0.beta1 bin/hanami-assets
hanami-assets-1.2.0 bin/hanami-assets
hanami-assets-1.2.0.rc2 bin/hanami-assets
hanami-assets-1.2.0.rc1 bin/hanami-assets
hanami-assets-1.2.0.beta2 bin/hanami-assets
hanami-assets-1.2.0.beta1 bin/hanami-assets
hanami-assets-1.1.1 bin/hanami-assets
hanami-assets-1.1.0 bin/hanami-assets
hanami-assets-1.1.0.rc1 bin/hanami-assets
hanami-assets-1.1.0.beta3 bin/hanami-assets
hanami-assets-1.1.0.beta2 bin/hanami-assets
hanami-assets-1.1.0.beta1 bin/hanami-assets
hanami-assets-1.0.0 bin/hanami-assets
hanami-assets-1.0.0.rc1 bin/hanami-assets
hanami-assets-1.0.0.beta2 bin/hanami-assets