Sha256: b0c7cd32e8c8f56ebc5fd38c1899e98c556cf5f57435a9c6e547522a1c30f4d1

Contents?: true

Size: 742 Bytes

Versions: 10

Compression:

Stored size: 742 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, :host, :slides_file, :ui
      def initialize(doc_root, port, host, slides_file, ui)
        @doc_root = doc_root
        @port = port
        @host = host
        @slides_file = 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://#{host}:#{port}'."
        ui.message 'Press CTRL-C to stop.'
        ui.separator
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
reveal-ck-4.0.0 lib/reveal-ck/commands/print_banner.rb
reveal-ck-3.9.2 lib/reveal-ck/commands/print_banner.rb
reveal-ck-3.9.1 lib/reveal-ck/commands/print_banner.rb
reveal-ck-3.9.0 lib/reveal-ck/commands/print_banner.rb
reveal-ck-3.8.1 lib/reveal-ck/commands/print_banner.rb
reveal-ck-3.8.0 lib/reveal-ck/commands/print_banner.rb
reveal-ck-3.7.0 lib/reveal-ck/commands/print_banner.rb
reveal-ck-3.6.0 lib/reveal-ck/commands/print_banner.rb
reveal-ck-3.5.1 lib/reveal-ck/commands/print_banner.rb
reveal-ck-3.5.0 lib/reveal-ck/commands/print_banner.rb