Class: Sprout::LibraryGenerator
- Inherits:
-
Generator::Base
- Object
- Executable::Base
- Generator::Base
- Sprout::LibraryGenerator
- Defined in:
- lib/sprout/generators/library/library_generator.rb
Constant Summary
Constant Summary
Constants included from Executable
Executable::DEFAULT_FILE_EXPRESSION, Executable::DEFAULT_PREFIX, Executable::DEFAULT_SHORT_PREFIX
Instance Attribute Summary (collapse)
-
- (Object) version
Set the version string to use.
Attributes inherited from Generator::Base
#destroy, #force, #input, #logger, #name, #path, #pkg_name, #pkg_version, #quiet, #show_template_paths, #templates
Attributes inherited from Executable::Base
#abort_on_failure, #default_prefix, #default_short_prefix, #executable, #param_hash, #params, #pkg_name, #pkg_version, #prerequisites, #rake_task_name
Instance Method Summary (collapse)
Methods inherited from Generator::Base
#create_template_paths, #default_search_paths, #directory, #do_show_template_paths, #execute, #file, #generator, inherited, #prepare_command, #resolve_template, #say, #template, #template_paths, #unexecute, #validate
Methods inherited from Executable::Base
add_param, add_param_alias, #binary_path, #binary_path=, #create_outer_task, #default_file_expression, #execute, #execute_delegate, #from_hash, #initialize, #initialize_defaults, #library_added, #parse!, #parse_extra_options!, #parse_rake_task_arg, #prepare, set, static_default_value_collection, static_parameter_collection, #stderr, #stderr=, #stdout, #stdout=, #system_execute, #to_hash, #to_help, #to_rake, #to_shell, #update_rake_task_name_from_args
Methods included from Concern
#append_features, extended, #included
Constructor Details
This class inherits a constructor from Sprout::Executable::Base
Instance Attribute Details
- (Object) version
Set the version string to use.
11 |
# File 'lib/sprout/generators/library/library_generator.rb', line 11 add_param :version, String, { :default => '0.0.1' } |
Instance Method Details
- (Object) manifest
13 14 15 16 |
# File 'lib/sprout/generators/library/library_generator.rb', line 13 def manifest template "#{input.snake_case}.gemspec", 'library.gemspec' template "#{input.snake_case}.rb", 'library.rb' end |