Sha256: 2e964a2aa736f8368f9d4306b57d9d30362a47a3344884f2a48507a61ef33d12
Contents?: true
Size: 839 Bytes
Versions: 3
Compression:
Stored size: 839 Bytes
Contents
# frozen_string_literal: true require "cri" require "cfer/auster/cli/_shared" module Cfer module Auster module CLI def self.task Cri::Command.define do name "task" usage "task aws-region/config-set script-name [args]" description "Runs a task within the context of an Auster config set." CLI.standard_options(self) run do |opts, args, cmd| if args.length < 2 puts cmd.help exit 1 else CLI.repo_from_options(opts) do |repo| args = args.dup config_set = repo.config_set(args.shift) task_name = args.shift repo.run_task(task_name, config_set, args) end end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auster-0.4.0 | lib/cfer/auster/cli/task.rb |
auster-0.3.1 | lib/cfer/auster/cli/task.rb |
auster-0.3.0 | lib/cfer/auster/cli/task.rb |