Class: Autorake

Inherits:
Object
  • Object
show all
Defined in:
lib/version.rb,
lib/autorake.rb

Defined Under Namespace

Classes: Version

Instance Method Summary collapse

Constructor Details

#initialize(configFilePath) ⇒ Autorake

Returns a new instance of Autorake.



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

def initialize configFilePath
    @plugin_root = File.expand_path( File.dirname __FILE__ ) + "/.."
    @configFilePath = configFilePath || @plugin_root + "/config/autorake.yml"
    @config = YAML.load_file(@configFilePath)
    start_watching
end