Class: Yakka::Cli

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/yakka/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/yakka/cli.rb', line 8

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#clearObject



13
14
15
# File 'lib/yakka/cli.rb', line 13

def clear
  Rules.clear
end

#enable(rule) ⇒ Object



19
20
21
# File 'lib/yakka/cli.rb', line 19

def enable(rule)
  Rules.enable(rule)
end

#installObject



25
26
27
# File 'lib/yakka/cli.rb', line 25

def install
  template('templates/yakka.yml', "~/.yakka")
end

#listObject



31
32
33
# File 'lib/yakka/cli.rb', line 31

def list
  Rules.list
end