lib/packer/binary.rb in packer-binary-0.2.1 vs lib/packer/binary.rb in packer-binary-0.2.2

- old
+ new

@@ -10,10 +10,11 @@ # as providing a dynamic namespace and ruby client for sub-commands of said binary module Packer # The Binary namespace handles sub-commands using {#method_missing} metaprogramming # as well as the global configuration object module Binary + # @!attribute config # @return [Configuration] the global configuration object attr_writer :config module_function @@ -38,10 +39,10 @@ # @note if the method is an invalid sub-command or if the command fails # you will get a {Command::CommandFailure} exception # @since 0.2.0 def method_missing(method, *args, &block) if method.to_s =~ /(\w+)/ - puts "#{method.to_s.downcase} #{args.join(' ')}" + Packer::Binary::Helpers.debug("#{method.to_s.downcase} #{args.join(' ')}") Command.run("#{method.to_s.downcase} #{args.join(' ')}") else super end end