Class: Rda::Command
- Inherits:
-
Thor
- Object
- Thor
- Rda::Command
- Includes:
- Thor::Actions
- Defined in:
- lib/rda/command.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/rda/command.rb', line 9 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#app(action) ⇒ Object
29 30 31 |
# File 'lib/rda/command.rb', line 29 def app(action) Rda::App.new.send(action.to_sym) end |
#init ⇒ Object
14 15 16 |
# File 'lib/rda/command.rb', line 14 def init template('templates/rda.json', "#{Rda::Rails.root}/.rda") end |