Sha256: b260d1454890fcbf12ca1dee08210f68b5966f0afe9f5421ea0455c37e9f7228

Contents?: true

Size: 749 Bytes

Versions: 3

Compression:

Stored size: 749 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)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adyen-skinbuilder-0.4.1 bin/adyen-skinbuilder
adyen-skinbuilder-0.3.2 bin/adyen-skinbuilder
adyen-skinbuilder-0.3.1 bin/adyen-skinbuilder