Sha256: 6dbdfe8c67b971253923e4d7ff8a5209c265b529cc63ca18ce5c7615003cd97b
Contents?: true
Size: 694 Bytes
Versions: 7
Compression:
Stored size: 694 Bytes
Contents
module RevealCK module Commands # The idea of displaying a banner via an injected ui. Messages # sent explain everything to do with the serve command (listening, # reloading, and webserving) class PrintBanner attr_reader :doc_root, :port, :slides_file, :ui def initialize(doc_root, port, slides_file, ui) @doc_root, @port, @slides_file = doc_root, port, slides_file @ui = ui end def run ui.separator ui.message "Serving up slide content in '#{doc_root}/'." ui.message "Open your browser to 'http://localhost:#{port}'." ui.message 'Press CTRL-C to stop.' ui.separator end end end end
Version data entries
7 entries across 7 versions & 1 rubygems