Class: CommandsTasks

Inherits:
Thor
  • Object
show all
Includes:
BEM::Actions, Thor::Actions
Defined in:
lib/bem/commands_tasks.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BEM::Actions

#build_with, #destroy_with

Class Method Details

.source_rootObject



5
6
7
# File 'lib/bem/commands_tasks.rb', line 5

def self.source_root
  File.join(Rails.root.to_s, 'lib', 'bem', 'templates')
end

Instance Method Details

#createObject



19
20
21
# File 'lib/bem/commands_tasks.rb', line 19

def create
  build_with options
end

#destroyObject



31
32
33
# File 'lib/bem/commands_tasks.rb', line 31

def destroy
  destroy_with options
end