Class: SashimiTanpopo::Provider::Local

Inherits:
Base
  • Object
show all
Defined in:
lib/sashimi_tanpopo/provider/local.rb

Overview

Apply recipe files to local

Instance Method Summary collapse

Methods inherited from Base

#apply_recipe_files

Constructor Details

#initialize(recipe_paths:, target_dir:, params:, dry_run:, is_colored:) ⇒ Local

Returns a new instance of Local.

Parameters:

  • recipe_paths (Array<String>)
  • target_dir (String, nil)
  • params (Hash<Symbol, String>)
  • dry_run (Boolean)
  • is_colored (Boolean)

    Whether show color diff



12
13
14
15
16
17
18
19
20
21
# File 'lib/sashimi_tanpopo/provider/local.rb', line 12

def initialize(recipe_paths:, target_dir:, params:, dry_run:, is_colored:)
  super(
    recipe_paths:    recipe_paths,
    target_dir:      target_dir,
    params:          params,
    dry_run:         dry_run,
    is_colored:      is_colored,
    is_update_local: true
  )
end

Instance Method Details

#performObject



23
24
25
# File 'lib/sashimi_tanpopo/provider/local.rb', line 23

def perform
  apply_recipe_files
end