Module: Jumpup

Defined in:
lib/jumpup.rb,
lib/jumpup/ui.rb,
lib/jumpup/version.rb,
lib/jumpup/commands/git_command.rb,
lib/jumpup/commands/bundler_command.rb

Defined Under Namespace

Modules: BundlerCommand, GitCommand, UI

Constant Summary collapse

MISSING_INTEGRATION_TASKS_CONSTANT_MESSAGE =
%{
You should define INTEGRATION_TASKS constant. We recommend that you define it on lib/tasks/jumpup.rake file. The file doesn't exists. You should create it in your project.

You'll probably want to add coverage/ to your .gitignore file.

A sample content look like this:

INTEGRATION_TASKS = %w(
  jumpup:start
  jumpup:bundle_install
  db:migrate
  spec
  jumpup:finish
)

}
VERSION =
'0.0.7'

Class Method Summary collapse

Class Method Details

.load_tasksObject



30
31
32
# File 'lib/jumpup.rb', line 30

def load_tasks
  Dir["#{Gem::Specification.find_by_name('jumpup').full_gem_path}/lib/tasks/*.rake"].each { |ext| load ext } if defined?(Rake)
end

.perform_integrationObject



21
22
23
24
25
26
27
28
# File 'lib/jumpup.rb', line 21

def perform_integration
  unless defined?(INTEGRATION_TASKS)
    Jumpup::UI.header MISSING_INTEGRATION_TASKS_CONSTANT_MESSAGE
    exit
  end

  invoke_tasks
end