Sha256: 2ae3cec94b3a3e45aa50cd8933b14023d7e95a849b07ed3a1117745a33b52d5d
Contents?: true
Size: 845 Bytes
Versions: 15
Compression:
Stored size: 845 Bytes
Contents
require 'thor' module Taperole module Commands class Tape < Thor include Taperole::Helpers::Files include Taperole::Helpers::Logging class_option :verbose, type: :boolean class_option :debug, type: :boolean class_option :quiet, type: :boolean map %w[--version -v] => :__print_version desc "--version, -v", "print the version" def __print_version puts Taperole::VERSION end desc 'ansible [COMMAND]', 'run tapes ansible commands' subcommand 'ansible', Ansible desc 'installer [COMMAND]', 'install and uninstall tape' subcommand 'installer', Installer desc 'overwrite [ROLE]', 'Overwrite a taperole ansible role' def overwrite_role(role) FileUtils.cp_r("#{tape_dir}/roles/#{role}", "taperole/roles/") end end end end
Version data entries
15 entries across 15 versions & 1 rubygems