Sha256: ffa00aeabaae3091998b3b08984fff4e71ff8d1b3ae344a72ce2e932d32132be

Contents?: true

Size: 664 Bytes

Versions: 36

Compression:

Stored size: 664 Bytes

Contents

module PowerStencil
  module CommandProcessors

    class Root

      include Climatic::Script::UnimplementedProcessor
      include Climatic::Proxy

      def execute
        if config[:version]
          if config[:verbose]
            puts "PowerStencil framework v: #{PowerStencil::VERSION}"
          else
            puts PowerStencil::VERSION
          end
          return
        end
        unless config.command_line_layer.extra_parameters.empty?
          raise PowerStencil::Error, "Invalid command '#{config.command_line_layer.extra_parameters.first}'"
        end
        puts_and_logs 'No action specified. Exiting...'
      end

    end

  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
power_stencil-0.4.5 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.4 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.3 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.2 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.1 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.0 lib/power_stencil/command_processors/root.rb
power_stencil-0.3.9 lib/power_stencil/command_processors/root.rb
power_stencil-0.3.8 lib/power_stencil/command_processors/root.rb
power_stencil-0.3.7 lib/power_stencil/command_processors/root.rb
power_stencil-0.3.6 lib/power_stencil/command_processors/root.rb
power_stencil-0.3.5 lib/power_stencil/command_processors/root.rb
power_stencil-0.3.4 lib/power_stencil/command_processors/root.rb
power_stencil-0.3.3 lib/power_stencil/command_processors/root.rb
power_stencil-0.3.2 lib/power_stencil/command_processors/root.rb
power_stencil-0.3.1 lib/power_stencil/command_processors/root.rb
power_stencil-0.3.0 lib/power_stencil/command_processors/root.rb