Class: CrapMode

Inherits:
Mode
  • Object
show all
Defined in:
lib/grundler/crap_mode.rb

Instance Method Summary collapse

Methods inherited from Mode

#initialize

Constructor Details

This class inherits a constructor from Mode

Instance Method Details

#writeObject



4
5
6
7
8
9
# File 'lib/grundler/crap_mode.rb', line 4

def write
  notify
  File.write(file_path, process(untar))
rescue Mode::NoEntryPointError
  puts "\e[31mNo entry point found for file #{@version["name"]}\e[0m"
end