Class: Charyf::Generators::AppBase
- Defined in:
- lib/charyf/utils/generators/app_base.rb
Overview
:nodoc:
Direct Known Subclasses
Defined Under Namespace
Classes: GemfileEntry
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ AppBase
constructor
A new instance of AppBase.
Methods inherited from Base
class_option, desc, desc_file, hide!, hook_for, inherited, namespace, source_root
Methods included from Actions
#add_source, #after_bundle, #environment, #gem, #gem_group, #git
Constructor Details
#initialize(*args) ⇒ AppBase
Returns a new instance of AppBase.
76 77 78 79 80 |
# File 'lib/charyf/utils/generators/app_base.rb', line 76 def initialize(*args) @gem_filter = lambda { |gem| true } @extra_entries = [] super end |
Class Method Details
.add_shared_options_for(name) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/charyf/utils/generators/app_base.rb', line 42 def self.(name) class_option :intent_processors, type: :array, default: Defaults::SETTINGS[:intents], desc: "Set of intent intent processors to be included in installation" + Defaults.intents_desc, group: :strategies class_option :storage_provider, type: :string, default: Defaults::SETTINGS[:storage], desc: "Storage provider to be installed by default." + Defaults.storage_desc, group: :strategies class_option :skip_gemfile, type: :boolean, default: false, desc: "Don't create a Gemfile" class_option :skip_git, type: :boolean, aliases: "-G", default: false, desc: "Skip .gitignore file" class_option :skip_keeps, type: :boolean, default: false, desc: "Skip source control .keep files" class_option :lib, type: :boolean, aliases: "-L", default: false, desc: "Install Charyf as library to existing project" class_option :dev, type: :boolean, default: false, desc: "Setup the #{name} with Gemfile pointing to your Charyf checkout" class_option :edge, type: :boolean, default: false, desc: "Setup the #{name} with Gemfile pointing to Charyf repository" class_option :help, type: :boolean, aliases: "-h", group: :charyf, desc: "Show this help message and quit" end |
.strict_args_position ⇒ Object
38 39 40 |
# File 'lib/charyf/utils/generators/app_base.rb', line 38 def self.strict_args_position false end |