Sha256: 10a2811987fd0594bbfd332dd677eda7b89fec3a073dd27d6b41e36881ac058e
Contents?: true
Size: 640 Bytes
Versions: 10
Compression:
Stored size: 640 Bytes
Contents
require 'r10k/cli/environment' require 'r10k/deployment' require 'cri' module R10K::CLI::Environment module List def self.command @cmd ||= Cri::Command.define do name 'list' usage 'list' summary 'List all available environments' run do |opts, args, cmd| deployment = R10K::Deployment.instance output = deployment.environments.inject('') do |str, root| str << " - " str << "#{root.name}: #{root.full_path}" str << "\n" end puts output end end end end self.command.add_command(List.command) end
Version data entries
10 entries across 10 versions & 1 rubygems