Module: Lambom
- Defined in:
- lib/lambom/converger.rb,
lib/lambom.rb,
lib/lambom/api.rb,
lib/lambom/config.rb,
lib/lambom/version.rb,
lib/lambom/shell_mixin.rb
Overview
require “berkshelf/cli”
Defined Under Namespace
Modules: ShellMixin Classes: ApiClient, Config, Converger
Constant Summary collapse
- VERSION =
"0.4.3"
Class Method Summary collapse
Class Method Details
.enable_debug ⇒ Object
35 36 37 |
# File 'lib/lambom.rb', line 35 def enable_debug $debug = true end |
.run(argv) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/lambom.rb', line 19 def run(argv) puts "DEBUG ENABLED" if $debug puts "Recived args: #{argv.inspect}" if $debug raise 'Must be run as root' unless Process.uid == 0 #cargar config conf = Lambom::Config.new.load # sobreescribimos a configuracion ca linea de comandos conf.merge(argv) # executar converxencia Lambom::Converger.new(conf).run end |