Class: DCA::CLI
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
7 8 9 |
# File 'lib/dca/cli.rb', line 7 def self.source_root File.('../commands/templates', __FILE__) end |
Instance Method Details
#config ⇒ Object
12 13 14 15 |
# File 'lib/dca/cli.rb', line 12 def config empty_directory 'config' template 'config.yml.erb', 'config/config.yml' end |
#install ⇒ Object
21 22 23 24 |
# File 'lib/dca/cli.rb', line 21 def install project = "#{DCA.project_name}::Project".constantize project.install end |
#uninstall ⇒ Object
27 28 29 30 |
# File 'lib/dca/cli.rb', line 27 def uninstall project = "#{DCA.project_name}::Project".constantize project.remove end |