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.6.0 lib/power_stencil/command_processors/root.rb
power_stencil-0.5.1 lib/power_stencil/command_processors/root.rb
power_stencil-0.5.0 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.22 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.21 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.20 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.19 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.18 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.17 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.16 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.15 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.14 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.13 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.12 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.11 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.10 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.9 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.8 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.7 lib/power_stencil/command_processors/root.rb
power_stencil-0.4.6 lib/power_stencil/command_processors/root.rb