Class: Chester::Command::Brew

Inherits:
Base
  • Object
show all
Defined in:
lib/chester/commands/brew.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#display, #initialize

Methods included from Helpers

#home_directory, #running_on_a_mac?, #running_on_windows?

Constructor Details

This class inherits a constructor from Chester::Command::Base

Instance Method Details

#indexObject



3
4
5
6
7
8
9
10
# File 'lib/chester/commands/brew.rb', line 3

def index
  display "Start Brewing"
  Dir.glob("#{FileUtils.pwd}/**/*.coffee").each do |f|
    system "coffee -c #{f}"
    display "Brewed #{f}..."
  end
  display "Finished Brewing...."
end