Sha256: 6dd956622ae00c6545c107f4bd048aa881e8a27b3b8a498d81e4c496445a6525

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

require 'colorize'

module RebuildPlugins
  class RbldHelloCommand < Rebuild::CLI::Command
    def usage
      banner( :usage )
    end

    def run(parameters)
      banner( :run )
    end

    class << self
      attr_accessor :stream
    end

    private

    def self.banner(method)
      @stream.puts
      @stream.puts "Hello from rbld hello '#{method}' handler".yellow
      @stream.puts
    end

    def banner(method)
      self.class.banner( method )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbld-plugin-hello-0.0.7 lib/rbld-plugin-hello/rbld_hello.rb
rbld-plugin-hello-0.0.6 lib/rbld-plugin-hello/rbld_hello.rb
rbld-plugin-hello-0.0.5 lib/rbld-plugin-hello/rbld_hello.rb