Top Level Namespace

Defined Under Namespace

Modules: AccordionBuilderHelper, ActiveFedora, BlacklightHelper, CommonObjectsHelper, Curate, CurateController, CurateHelper, CurationConcern, FeatureSupport, GenericFileHelper, RDF, Rubydora Classes: Account, AntiVirusScanner, Article, ArticleMetadataDatastream, BootstrapBreadcrumbsBuilder, CatalogController, CharacterizeJob, ClassifyConcern, ClassifyConcernsController, Collection, CommonObjectsController, CompositeInput, ContributorAgreement, ContributorsAssociation, CurateGenerator, Dataset, Document, DocumentDatastream, DownloadsController, ErrorsController, Etd, EtdMetadata, FileContentDatastream, FutureDateValidator, GenericFile, GenericWork, GenericWorkRdfDatastream, GroupMetadataDatastream, HelpRequest, HelpRequestsController, Image, ImageMetadata, InlineReflection, LinkedResource, MintRemoteIdentifierWorker, MultiValueInput, MultiValueWithElementsInput, NotificationMailer, NotificationWorker, Person, PersonMetadataDatastream, Profile, ProfileSection, PurlConfig, QuickClassificationQuery, RegistrationsController, SessionsController, TermsOfServiceAgreementsController, UsersController, VisibilityCopyWorker

Constant Summary collapse

HELPFUL_DEVELOPMENT_TOOLS =
<<-QUESTION_TO_ASK
Would you like to include some helfpul development tools? (i.e. better_errors, binding_of_caller, quiet_assets)

http://rubygems.org/gems/better_errors
http://rubygems.org/gems/quiet_assets
http://rubygems.org/gems/binding_of_caller
QUESTION_TO_ASK
USE_RUBY_RACER =
<<-QUESTION_TO_ASK
Would you like to include the Ruby Racer gem? (Needed in some Linux environments)

More information at http://github.com/cowboyd/therubyracer
QUESTION_TO_ASK
DOI_QUESTION =
<<-QUESTION_TO_ASK
Would you like to allow remote minting of Digital Object Identifiers (DOI)s?

More information at http://simple.wikipedia.org/wiki/Doi
QUESTION_TO_ASK
JETTY_QUESTION =
<<-QUESTION_TO_ASK
Would you like to use jettywrapper for your SOLR and Fedora?

More information at https://github.com/projecthydra/jettywrapper/
QUESTION_TO_ASK

Instance Method Summary collapse

Instance Method Details

#source_pathsObject



12
13
14
15
# File 'lib/generators/curate/application_template.rb', line 12

def source_paths
  Array(super) +
      [File.join(File.expand_path(File.dirname(__FILE__)),'predicate_mapping')]
end

#with_git(message) ⇒ Object



1
2
3
4
5
6
7
8
# File 'lib/generators/curate/application_template.rb', line 1

def with_git(message)
  yield if block_given?
  if ! options.fetch('skip_git', false)
    git :init
    git add: '.'
    git commit: "-a -m '#{message}'"
  end
end

#yes_with_banner?(message, banner = "*" * 80) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/generators/curate/application_template.rb', line 9

def yes_with_banner?(message, banner = "*" * 80)
  yes?("\n#{banner}\n\n#{message}\n#{banner}\nType y(es) to confirm:")
end