Class: Awestruct::CLI::Auto

Inherits:
Object
  • Object
show all
Defined in:
lib/awestruct/cli/auto.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Auto

Returns a new instance of Auto.



7
8
9
# File 'lib/awestruct/cli/auto.rb', line 7

def initialize(path)
  @path = path
end

Instance Method Details

#runObject



11
12
13
14
15
16
# File 'lib/awestruct/cli/auto.rb', line 11

def run()
  Guard.setup
  Guard.start( :guardfile=>File.dirname(__FILE__) + '/Guardfile', 
               :watchdir=>@path,
               :watch_all_modifications=>true )
end