nikita

1.0.0-alpha.4 • Public • Published

Nikita

Automation and deployment solution of applications and infrastructures.

Example

import nikita from "nikita";

await nikita.log
  .cli()
  .file.download({
    $header: "Download",
    source: "http://download.redis.io/redis-stable.tar.gz",
    target: "redis-stable.tar.gz",
    cache: true,
    cache_dir: "/tmp/.cache",
  })
  .execute({
    $header: "Compile",
    $unless_exists: "redis-stable/src/redis-server",
    command: `
    tar xzf ./redis-stable.tar.gz
    cd redis-stable
    make
    `,
  })
  .file.properties({
    $header: "Configure",
    target: "conf/redis.conf",
    separator: " ",
    content: {
      bind: "127.0.0.1",
      "protected-mode": "yes",
      port: 6379,
    },
  })
  .execute({
    $debug: true,
    $header: "Start",
    // bash: true,
    code: [0, 42],
    command: `
    ./redis-stable/src/redis-cli ping && exit 42
    nohup ./redis-stable/src/redis-server conf/redis.conf &
    `,
  });

/nikita/

    Package Sidebar

    Install

    npm i nikita

    Weekly Downloads

    8

    Version

    1.0.0-alpha.4

    License

    MIT

    Unpacked Size

    4.57 kB

    Total Files

    4

    Last publish

    Collaborators

    • david