Module: Rsg::Generators::Options

Included in:
Base
Defined in:
lib/rsg/generators/options.rb

Class Method Summary collapse

Class Method Details

.configure_basic_options(base) ⇒ Object



8
9
10
11
12
# File 'lib/rsg/generators/options.rb', line 8

def self.configure_basic_options(base)
  base.instance_eval do
    class_option :quiet, type: :boolean, aliases: "-q", default: false, desc: "Suppress status output"
  end
end

.included(base) ⇒ Object



4
5
6
# File 'lib/rsg/generators/options.rb', line 4

def self.included(base)
  configure_basic_options(base)
end