Sha256: 1534d14e06609628e005eb8f5bb12a7ac1f1d8dca25bb7f1d5a77859a4d30a7e

Contents?: true

Size: 598 Bytes

Versions: 14

Compression:

Stored size: 598 Bytes

Contents

module Climatic

  module Script

    class Simple

      include Climatic::Script::UnimplementedProcessor
      include Climatic::Script::Base

      def initialize
        register_processor
      end

      def register_processor(commands = cmd_line_mngr.commands, processor = self)
        commands = [commands] unless commands.is_a? Array
        commands.each do |command|
          cmd_line_mngr.register_processor command, processor
        end
      end

      private

      def cmd_line_mngr
        Climatic.config.command_line_layer.command_line_manager
      end

    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
climatic-0.2.40 lib/climatic/script/simple.rb
climatic-0.2.39 lib/climatic/script/simple.rb
climatic-0.2.38 lib/climatic/script/simple.rb
climatic-0.2.37 lib/climatic/script/simple.rb
climatic-0.2.36 lib/climatic/script/simple.rb
climatic-0.2.35 lib/climatic/script/simple.rb
climatic-0.2.34 lib/climatic/script/simple.rb
climatic-0.2.32 lib/climatic/script/simple.rb
climatic-0.2.31 lib/climatic/script/simple.rb
climatic-0.2.30 lib/climatic/script/simple.rb
climatic-0.2.29 lib/climatic/script/simple.rb
climatic-0.2.28 lib/climatic/script/simple.rb
climatic-0.2.27 lib/climatic/script/simple.rb
climatic-0.2.26 lib/climatic/script/simple.rb