Class: Moku::Task::Bundle

Inherits:
Task
  • Object
show all
Defined in:
lib/moku/task/bundle.rb

Overview

Retrieve and install the artifact's gems (as defined by its Gemfile)

Instance Method Summary collapse

Methods inherited from Task

#to_s

Constructor Details

#initialize(cached_bundle: Moku.cached_bundle) ⇒ Bundle

Returns a new instance of Bundle.

Parameters:

  • runner

    A system runner


11
12
13
# File 'lib/moku/task/bundle.rb', line 11

def initialize(cached_bundle: Moku.cached_bundle)
  @cached_bundle = cached_bundle
end

Instance Method Details

#call(artifact) ⇒ Status

Parameters:

Returns:


17
18
19
# File 'lib/moku/task/bundle.rb', line 17

def call(artifact)
  cached_bundle.install(artifact)
end