Class: Orats::Commands::Nuke
- Defined in:
- lib/orats/commands/nuke.rb
Constant Summary
Constants inherited from Common
Instance Attribute Summary
Attributes inherited from Common
#local_paths, #remote_gem_version, #remote_paths
Instance Method Summary collapse
- #init ⇒ Object
-
#initialize(target_path = '', options = {}) ⇒ Nuke
constructor
A new instance of Nuke.
Methods inherited from Common
#base_path, copy_from_local_gem, #exit_if_path_exists, #exit_if_process, #file_to_string, #repo_path, #url_to_string
Methods included from Diff::Parse
#galaxyfile, #gem_version, #hosts, #inventory, #playbook
Methods included from UI
#git_commit, #log_error, #log_local_info, #log_remote_info, #log_results, #log_status_bottom, #log_status_top, #log_task, #run_from
Constructor Details
#initialize(target_path = '', options = {}) ⇒ Nuke
Returns a new instance of Nuke.
6 7 8 |
# File 'lib/orats/commands/nuke.rb', line 6 def initialize(target_path = '', = {}) super end |
Instance Method Details
#init ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/orats/commands/nuke.rb', line 10 def init log_nuke_info log_nuke_details unless [:skip_data] confirmed_to_delete = yes?('Are you sure? (y/N)', :cyan); puts if confirmed_to_delete nuke_data unless [:skip_data] nuke_directory end end |