Class: VocaBuil::InstallCheckSample
- Inherits:
-
Object
- Object
- VocaBuil::InstallCheckSample
- Defined in:
- lib/voca_buil/multi_check.rb,
lib/voca_buil/_stacks/_stacks_v2_260114/multi_check.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(tgz_file = 'etymological_builder_check_sample.tgz') ⇒ InstallCheckSample
constructor
A new instance of InstallCheckSample.
- #run ⇒ Object
Constructor Details
#initialize(tgz_file = 'etymological_builder_check_sample.tgz') ⇒ InstallCheckSample
Returns a new instance of InstallCheckSample.
356 357 358 |
# File 'lib/voca_buil/multi_check.rb', line 356 def initialize(tgz_file = nil) @tgz_file = tgz_file || File.join(__dir__, 'etymological_builder_check_sample.tgz') end |
Instance Method Details
#run ⇒ Object
360 361 362 363 364 365 366 367 368 |
# File 'lib/voca_buil/multi_check.rb', line 360 def run unless File.exist?(@tgz_file) puts "#{@tgz_file} not found.".red return end puts "Extracting #{@tgz_file} to current directory...".green system("tar", "xzf", @tgz_file) puts "Extraction complete.".green end |