Sha256: d91d8102b4a46d7044939a12236c31101b07ee8378f0e2e21c4fac7562cdba9b
Contents?: true
Size: 901 Bytes
Versions: 2
Compression:
Stored size: 901 Bytes
Contents
#!/usr/bin/env ruby require File.expand_path(File.dirname(__FILE__) + "/../lib/adyen-skinbuilder/server") require File.expand_path(File.dirname(__FILE__) + "/../lib/hash") require 'vegas' opts = {} if (skins = ARGV.last) && File.directory?(skins) opts[:skins_directory] = File.expand_path(skins) begin skin = Adyen::Admin::Skin.new(:path => skins) #auto launch skin opts[:launch_path] = "/#{skin.code}" rescue ArgumentError end end adyen_rc_file = ".adyenrc" if !File.exists?(adyen_rc_file) adyen_rc_file = File.expand_path("~/#{adyen_rc_file}") end begin opts[:adyen_admin_cfg] = YAML::load(::File.open(adyen_rc_file)).symbolize_keys! rescue end Vegas::Runner.new(Adyen::SkinBuilder::Server, 'adyen-skinbuilder', opts) do |runner, opt, app| opt.on('-i PATH', '--i18n PATH', 'Load i18n translations from given directory') do |path| opts[:i18n_path] = path end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
adyen-skinbuilder-0.4.3 | bin/adyen-skinbuilder |
adyen-skinbuilder-0.4.2 | bin/adyen-skinbuilder |