Sha256: 1df9b11b6285208870577c90b11bf6ba62b0c5609dbf19d2a07006959aa8449e
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
# frozen_string_literal: true module Neptuno module CLI # Init Neptuno files class Clone < Dry::CLI::Command desc 'Clone a neptuno compliant project' def call(**options) git_url = options[:args].first args_path = options[:args].second path = args_path || git_url.split('/').last.split('.').first `git clone --recurse-submodules #{git_url}` `cd #{path}` `cd #{path} && neptuno services update -am` puts "Building Docker images" `cd #{path} && neptuno build -a` puts "Starting Docker containers" `cd #{path} && neptuno up -a` puts "Starting service processes" `cd #{path} && neptuno start -a` end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neptuno-1.0.7 | lib/neptuno/cli/clone.rb |