Top Level Namespace

Defined Under Namespace

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

Constant Summary collapse

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

#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