Sha256: 5573beddf5a5cac854b3c9b344b951c9f3efabc7eea9c0bf5d249c2940468716
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
require "oj" require 'time' require "mixlib/authentication" require "mixlib/authentication/signedheaderauth" require 'digest/sha1' require 'openssl' require 'net/http' require "lambom/shell_mixin" require "lambom/config" require "lambom/api" require "lambom/converger" module Lambom $debug = false class << self def run(argv) puts "DEBUG ENABLED" if $debug puts "args recibidos #{argv.inspect}" if $debug #cargar config conf = Lambom::Config.new.load # sobreescribimos a configuracion ca linea de comandos conf.merge(argv) attributes = {} # descargar atributos do servidor (a menos que nos pasen json_file => file.json) if argv.has_key?(:json_file) json_attributes = IO.read(argv[:json_file]) else json_attributes = Lambom::ApiClient.new(conf).get_server_config end # executar converxencia Lambom::Converger.new(conf,json_attributes).run end def enable_debug $debug = true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lambom-0.1.1 | lib/lambom.rb |