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

Version Path
taperole-2.1.1 lib/taperole/commands/tape.rb
taperole-2.1.0 lib/taperole/commands/tape.rb
taperole-2.0.7 lib/taperole/commands/tape.rb
taperole-2.0.6 lib/taperole/commands/tape.rb
taperole-2.0.5 lib/taperole/commands/tape.rb
taperole-2.0.4 lib/taperole/commands/tape.rb
taperole-2.0.3 lib/taperole/commands/tape.rb
taperole-2.0.2 lib/taperole/commands/tape.rb
taperole-2.0.1 lib/taperole/commands/tape.rb
taperole-2.0.0 lib/taperole/commands/tape.rb
taperole-1.8.2 lib/taperole/commands/tape.rb
taperole-1.8.1 lib/taperole/commands/tape.rb
taperole-1.8.0 lib/taperole/commands/tape.rb
taperole-1.7.1 lib/taperole/commands/tape.rb
taperole-1.7.0 lib/taperole/commands/tape.rb