Class: MqReporter::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/mq_reporter/cli.rb

Overview

Facade for the MqReporter command line interface managed by [Thor](github.com/wycats/thor). This is the main interface to MqReporter that is called by the MqReporter binary ‘bin/mq_reporter`. Do not put any logic in here, create a class and delegate instead.

Instance Method Summary collapse

Instance Method Details

#init(filename = "mq_reporter") ⇒ Object

Copies the mq_reporter.css file to vendor/assets/stylesheets and adds it the application layout file.

Parameters:

  • filename (String) (defaults to: "mq_reporter")

    the name of the file to add to the application

See Also:



22
23
24
25
# File 'lib/mq_reporter/cli.rb', line 22

def init(filename = "mq_reporter")
  # Provide an option for someone to pass a name they want for the file (not including the .css extention.)
  MqReporter.init(filename)
end