class Object

Constants

DOI_QUESTION
HELPFUL_DEVELOPMENT_TOOLS
JETTY_QUESTION
USE_RUBY_RACER

Public Instance Methods

source_paths() click to toggle source
Calls superclass method
# 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) { || ... } click to toggle source
# 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) click to toggle source
# 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