Sha256: aa2c021165eac718c0b03b294edec291c143b139bf29d2f0d1546697fe1f0a4a
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
module Caco::Sudo class SudoersAdd < Trailblazer::Operation step ->(ctx, identifier:, **) { ctx[:path] = "/etc/sudoers.d/#{identifier}" }, id: :build_path step Subprocess(Caco::FileWriter), input: ->(_ctx, path:, content:, **) {{ path: path, content: content }}, output: {file_created: :created, file_changed: :changed} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caco-0.1.0 | lib/caco/sudo/sudoers_add.rb |