Sha256: e991754716bb76d1097757931b7d48b02dec11247315016698657780b454b6be

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

module Caco::Debian
  class PackageInstalled < Trailblazer::Operation
    step Subprocess(Caco::Executer),
      input: ->(_ctx, package:, **) {{
        command: "dpkg -s #{package}"
      }},
      output: { exit_code: :command_exit_code, output: :command_output },
      id: "dpkg"

    step Subprocess(Caco::Finder),
      input: ->(_ctx, package:, **) {{
        command: "dpkg-query -W -f='${Status} ${Version}\n' #{package}",
        regexp: /^install/
      }},
      id: "dpkg_query"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caco-0.1.0 lib/caco/debian/package_installed.rb